def select_sort(inputlist):
    """
    简单选择排序

    :param inputlist: a list of number
    :return: the ascending list
    """
    length = len(inputlist)
    for i in range(length):
        minimum = i
        for j in range(i, length):
            if inputlist[j] < inputlist[minimum]:
                minimum = j
        inputlist[i], inputlist[minimum] = inputlist[minimum], inputlist[i]
    return inputlist