Fix Recipient comparator
This commit is contained in:
parent
c0c0e05a29
commit
f9afb31f39
1 changed files with 5 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue