def sort(array):
  aa=[array[0]]          # first number from array is first added to result
  for i in array[1:]:    # ommit first alredy added number
    for index,ii in enumerate(aa):
      if i > ii:       # test number is there is any lower already
        aa = aa[:index] + [i] + aa[index:]
        break
      if index == len(aa) - 1:  # add number as lowest if nothing is lower
        aa = aa + [i]
  print(aa[::-1])

49e58ed4714fc83ce74aa88e333ba43febd54b6c
<mask token>

def sort(array):
    aa = [array[0]]
    for i in array[1:]:
        for index, ii in enumerate(aa):
            if i > ii:
                aa = aa[:index] + [i] + aa[index:]
                break
            if index == len(aa) - 1:
                aa = aa + [i]
    print(aa[::-1])

def sort(array):
  aa=[array[0]]          # first number from array is first added to result
  for i in array[1:]:    # ommit first alredy added number
    for index,ii in enumerate(aa):
      if i > ii:       # test number is there is any lower already
        aa = aa[:index] + [i] + aa[index:]
        break
      if index == len(aa) - 1:  # add number as lowest if nothing is lower
        aa = aa + [i]
  print(aa[::-1])
