Solve problem 23 using Lua.
Remove useless sort from Go's problem 23.