func_code: def selectionsort(a):
      if len(a) != 2:
          a = [[], a]
      mini = min(a[1])
      a[1].remove(mini)
      a[0].append(mini)
      if len(a[1]) == 0:
          return a[0]
      else:
          return selectionsort(a)