Sorting the races with mappings