mirror of
https://github.com/prymitive/karma
synced 2026-05-05 03:16:51 +00:00
fix(api): overview modal should sort label names in ascending order
This commit is contained in:
@@ -78,7 +78,7 @@ func (lnsl LabelNameStatsList) Swap(i, j int) {
|
||||
}
|
||||
func (lnsl LabelNameStatsList) Less(i, j int) bool {
|
||||
if lnsl[i].Hits == lnsl[j].Hits {
|
||||
return lnsl[i].Name > lnsl[j].Name
|
||||
return lnsl[i].Name < lnsl[j].Name
|
||||
}
|
||||
return lnsl[i].Hits > lnsl[j].Hits
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user