function sort(...) a = {...} b = nil for j=1,#a-1 do for i=1,#a-j do if(a[i]>a[i+1]) then b = a[i+1] a[i+1] = a[i] a[i] = b end end end return a end