Adding local sorting to maps, layers, resources