- Optimized sorter_rank by if_lua.