TF-322 Sort default mailbox in TreeBuilder
This commit is contained in:
committed by
Dat H. Pham
parent
c2dc3b43fb
commit
71fc8a595e
@@ -135,4 +135,16 @@ extension MailboxNodeExtension on MailboxNode {
|
||||
selectMode: selectMode,
|
||||
);
|
||||
}
|
||||
|
||||
int compareTo(MailboxNode other) {
|
||||
if (item.sortOrder == null) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (other.item.sortOrder == null) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return item.sortOrder!.value.value.compareTo(other.item.sortOrder!.value.value);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user