diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java index 6ba952b797..772d353699 100644 --- a/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java +++ b/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java @@ -360,9 +360,9 @@ public class MapActivityLayers { Arrays.sort(files, new Comparator() { @Override public int compare(File object1, File object2) { - if (object1.lastModified() > object2.lastModified()) { + if (object1.getName() > object2.getName()) { return -1; - } else if (object1.lastModified() == object2.lastModified()) { + } else if (object1.getName() == object2.getName()) { return 0; } return 1;