From 5e6ef87cdcb1e41fe5731f4c6c1af118d56976ec Mon Sep 17 00:00:00 2001 From: sonora Date: Mon, 29 Aug 2011 09:48:58 +0200 Subject: [PATCH] sort gpx to facilitate finding imported gpx --- OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java b/OsmAnd/src/net/osmand/plus/activities/MapActivityLayers.java index 6ba952b797..8ffd0d6b77 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()compareTo(object2.getName()) > 0) { return -1; - } else if (object1.lastModified() == object2.lastModified()) { + } else if (object1.getName().equals(object2.getName())) { return 0; } return 1;