[ create a new paste ] login | about

Link: http://codepad.org/B7KqJEhj    [ raw code | output | fork ]

nepta - Lua, pasted on Apr 8:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
items = {
   "a","z","e","r","t","y",
   "u","i","o","p","q","s",
   "d","f","g","h","j","k",
   "l","m","w","x","c","v",
   "b","n"
}

function reverseOrder(a,b)
   return b < a
end

print(table.concat(items))
table.sort(items,reverseOrder)
print(table.concat(items))


Output:
1
2
azertyuiopqsdfghjklmwxcvbn
zyxwvutsrqponmlkjihgfedcba


Create a new paste based on this one


Comments: