TF-4179 Sort label list by alphabet
This commit is contained in:
@@ -39,4 +39,10 @@ extension LabelExtension on Label {
|
||||
color: color ?? this.color,
|
||||
);
|
||||
}
|
||||
|
||||
int compareAlphabetically(Label otherLabel) {
|
||||
return safeDisplayName
|
||||
.toLowerCase()
|
||||
.compareTo(otherLabel.safeDisplayName.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user