fix sort :/ (#1007)

This commit is contained in:
Thibault "bui" Koechlin 2021-10-12 19:16:24 +02:00 committed by GitHub
parent 1bd6b8f7b9
commit 3bb2128bf4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -221,8 +221,7 @@ func (b BucketResults) Len() int {
}
func (b BucketResults) Less(i, j int) bool {
return b[i].Overflow.Alert.GetScenario()+strings.Join(b[i].Overflow.GetSources(), "@") > b[j].Overflow.Alert.GetScenario()+strings.Join(b[i].Overflow.GetSources(), "@")
return b[i].Overflow.Alert.GetScenario()+strings.Join(b[i].Overflow.GetSources(), "@") > b[j].Overflow.Alert.GetScenario()+strings.Join(b[j].Overflow.GetSources(), "@")
}
func (b BucketResults) Swap(i, j int) {