fix sort :/ (#1007)
This commit is contained in:
parent
1bd6b8f7b9
commit
3bb2128bf4
|
@ -221,8 +221,7 @@ func (b BucketResults) Len() int {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b BucketResults) Less(i, j int) bool {
|
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[j].Overflow.GetSources(), "@")
|
||||||
return b[i].Overflow.Alert.GetScenario()+strings.Join(b[i].Overflow.GetSources(), "@") > b[j].Overflow.Alert.GetScenario()+strings.Join(b[i].Overflow.GetSources(), "@")
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b BucketResults) Swap(i, j int) {
|
func (b BucketResults) Swap(i, j int) {
|
||||||
|
|
Loading…
Reference in a new issue