Rename invertOrder to sortRankByIdAscending