fix sort for sort.lua woking