Lua Interface: Avoid float casting
Lua Interface: Remove deplicate sort()