func_code: def swapi(a, i, j):
      if a[j] < a[i]:
          tmp = a[i]
          a[i] = a[j]
          a[j] = tmp
  
  
  def selection_sort(a):
      i = 0
      while i < len(a):
          j = i
          while j < len(a):
              swapi(a, i, j)
              j += 1
          i += 1