diff options
| -rw-r--r-- | main/src/cgeo/geocaching/StoredList.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/main/src/cgeo/geocaching/StoredList.java b/main/src/cgeo/geocaching/StoredList.java index ec99d0a..4946420 100644 --- a/main/src/cgeo/geocaching/StoredList.java +++ b/main/src/cgeo/geocaching/StoredList.java @@ -129,6 +129,14 @@ public final class StoredList { @Override public int compare(StoredList lhs, StoredList rhs) { + // have the standard list at the top + if (lhs.id == STANDARD_LIST_ID) { + return -1; + } + if (rhs.id == STANDARD_LIST_ID) { + return 1; + } + // otherwise sort alphabetical return collator.compare(lhs.getTitle(), rhs.getTitle()); } }); |
