sort gpx to facilitate finding imported gpx
This commit is contained in:
parent
1bd9cdbe8f
commit
5e6ef87cdc
1 changed files with 2 additions and 2 deletions
|
@ -360,9 +360,9 @@ public class MapActivityLayers {
|
||||||
Arrays.sort(files, new Comparator<File>() {
|
Arrays.sort(files, new Comparator<File>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(File object1, File object2) {
|
public int compare(File object1, File object2) {
|
||||||
if (object1.lastModified() > object2.lastModified()) {
|
if (object1.getName()compareTo(object2.getName()) > 0) {
|
||||||
return -1;
|
return -1;
|
||||||
} else if (object1.lastModified() == object2.lastModified()) {
|
} else if (object1.getName().equals(object2.getName())) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
|
|
Loading…
Reference in a new issue