TF-4179 Sort label list by alphabet

This commit is contained in:
dab246
2025-12-08 16:59:39 +07:00
committed by Dat H. Pham
parent 07fd854175
commit f5bddecba6
6 changed files with 24 additions and 2 deletions
@@ -39,4 +39,10 @@ extension LabelExtension on Label {
color: color ?? this.color,
);
}
int compareAlphabetically(Label otherLabel) {
return safeDisplayName
.toLowerCase()
.compareTo(otherLabel.safeDisplayName.toLowerCase());
}
}