Make OrderedBy not exported

- Updated orderedBy call
This commit is contained in:
Sveta Smirnova
2023-11-23 22:14:35 +03:00
parent a2a15da674
commit f3bd08ad0d

View File

@@ -412,7 +412,7 @@ type multiSorter struct {
less []lessFunc
}
// Sort sorts the argument slice according to the less functions passed to OrderedBy.
// Sort sorts the argument slice according to the less functions passed to orderedBy.
func (ms *multiSorter) Sort(queries []stats.QueryStats) {
ms.queries = queries
sort.Sort(ms)
@@ -520,7 +520,7 @@ func sortQueries(queries []stats.QueryStats, orderby []string) []stats.QueryStat
sortFuncs = append(sortFuncs, f)
}
OrderedBy(sortFuncs...).Sort(queries)
orderedBy(sortFuncs...).Sort(queries)
return queries
}