sorting word ranks