diff --git a/pkg/result/processors/sort_results.go b/pkg/result/processors/sort_results.go index 0892d5675c3c..7eebea6315ef 100644 --- a/pkg/result/processors/sort_results.go +++ b/pkg/result/processors/sort_results.go @@ -29,6 +29,8 @@ const ( var _ Processor = (*SortResults)(nil) +type issueComparator func(a, b *result.Issue) int + type SortResults struct { cmps map[string][]issueComparator @@ -84,8 +86,6 @@ func (p SortResults) Process(issues []result.Issue) ([]result.Issue, error) { func (SortResults) Finish() {} -type issueComparator func(a, b *result.Issue) int - func byFileName(a, b *result.Issue) int { return strings.Compare(a.FilePath(), b.FilePath()) }