소스 검색

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