# Collection of code snippets by Arne Vajhøj 
# (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
def sort(a):
  for i in range(len(a)-1):
    for j in range(len(a))[i+1:]:
      if a[i] > a[j]:
        tmp = a[i]
        a[i] = a[j]
        a[j] = tmp

a = [1,3,2,4,0]
print a
sort(a)
print a
