浏览代码

fix sort :/ (#1007)

Thibault "bui" Koechlin 3 年之前
父节点
当前提交
3bb2128bf4
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      pkg/cstest/scenario_assert.go

+ 1 - 2
pkg/cstest/scenario_assert.go

@@ -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) {