From 3bb2128bf4553c855e462b6e49f08f69b42f5fa1 Mon Sep 17 00:00:00 2001 From: "Thibault \"bui\" Koechlin" Date: Tue, 12 Oct 2021 19:16:24 +0200 Subject: [PATCH] fix sort :/ (#1007) --- pkg/cstest/scenario_assert.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/cstest/scenario_assert.go b/pkg/cstest/scenario_assert.go index a278be048..02005442d 100644 --- a/pkg/cstest/scenario_assert.go +++ b/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) {