Sorted the rankings by rank