Sort mappings.