def selection_sort(lst):
    """Implement selection sorting algorithm."""
    if len(lst) < 2:
        return lst

    def smallest_index(lst):
        smallest = lst[0]
        sm_index = 0
        for i in range(len(lst)):
            if lst[i] < smallest:
                smallest = lst[i]
                sm_index = i
        return sm_index

    result = []
    for i in range(len(lst)):
        smallest = smallest_index(lst)
        result.append(lst.pop(smallest))

    return result