def selection_sort(items):
    """
    Sort items with a selection sort.
    """
    for index, item in enumerate(items):
        current_smallest = index
        for search_index in range(index + 1, len(items)):
            if items[search_index] < items[current_smallest]:
                current_smallest = search_index
        temp = items[index]
        items[index] = items[current_smallest]
        items[current_smallest] = temp
    return items