TF-37 Sort mailbox in alphabet
This commit is contained in:
committed by
Dat H. Pham
parent
e63298bc29
commit
63702035c8
@@ -1,5 +1,10 @@
|
||||
import 'package:jmap_dart_client/jmap/mail/mailbox/mailbox.dart';
|
||||
|
||||
extension MailboxNameExtension on MailboxName {
|
||||
int compareToSort(MailboxName mailboxName) => name.compareTo(mailboxName.name);
|
||||
int compareAlphabetically(MailboxName? other) {
|
||||
if (other == null) {
|
||||
return 1;
|
||||
}
|
||||
return name.toLowerCase().compareTo(other.name.toLowerCase());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user