Sort by rank works