fix(api): overview modal should sort label names in ascending order

This commit is contained in:
Łukasz Mierzwa
2019-07-31 13:21:27 +01:00
parent e36c59979b
commit 49087ee10d

View File

@@ -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
}