Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit e393edb6 authored by cketti's avatar cketti Committed by GitHub
Browse files

Merge pull request #5790 from k9mail/fix_recipient_comparator

Fix Recipient comparator
parents 3c96aef7 f9afb31f
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -110,8 +110,12 @@ public class RecipientLoader extends AsyncTaskLoader<List<Recipient>> {
                return timesContactedDiff;
            }

            if (lhs.sortKey == null || rhs.sortKey == null) {
            if (lhs.sortKey == null && rhs.sortKey == null) {
                return 0;
            } else if (lhs.sortKey == null) {
                return 1;
            } else if (rhs.sortKey == null) {
                return -1;
            }

            return CASE_INSENSITIVE_ORDER.compare(lhs.sortKey, rhs.sortKey);