TF-2528 Add integration test for search email with sort by sender nam…e ascending

This commit is contained in:
dab246
2024-11-13 15:51:25 +07:00
committed by Dat H. Pham
parent cf2a0b08e5
commit 51a4a1b9b7
27 changed files with 591 additions and 59 deletions
@@ -0,0 +1,21 @@
extension ListDateTimeExtension on List<DateTime> {
bool isSortedByMostRecent() {
for (int i = 0; i < length - 1; i++) {
if (this[i].isBefore(this[i + 1])) {
return false;
}
}
return true;
}
bool isSortedByOldestFirst() {
for (int i = 0; i < length - 1; i++) {
if (this[i].isAfter(this[i + 1])) {
return false;
}
}
return true;
}
}