Fix Rank sorter