Browse Source

fix sort :/ (#1007)

Thibault "bui" Koechlin 3 năm trước cách đây
mục cha
commit
3bb2128bf4
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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) {