sort mappings