Fix sorting
This commit is contained in:
parent
0294dd8c45
commit
3b52e43f9b
1 changed files with 7 additions and 1 deletions
|
@ -856,7 +856,13 @@ public class GpxUiHelper {
|
|||
if (res != 0) {
|
||||
return res;
|
||||
}
|
||||
return -i1.getFileName().toLowerCase().compareTo(i2.getFileName().toLowerCase());
|
||||
String name1 = i1.getFileName();
|
||||
String name2 = i2.getFileName();
|
||||
if (name1.length() > 0 && name2.length() > 0
|
||||
&& Character.isDigit(name1.charAt(0)) && Character.isDigit(name2.charAt(0))) {
|
||||
return -name1.compareToIgnoreCase(name2);
|
||||
}
|
||||
return name1.compareToIgnoreCase(name2);
|
||||
}
|
||||
});
|
||||
return list;
|
||||
|
|
Loading…
Reference in a new issue