fun sort (x) local i, j, y, n { n := x.length; if n == 0 then return x fi; for i := 0, i