Skip to content

Commit

Permalink
fixup! Common: Add common.SortStrings for stringers
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Aug 5, 2024
1 parent 1469260 commit 13da5af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/common.go
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ func Batch[S ~[]E, E any](blobs S, batchSize int) []S {
return batches
}

// SortStrings takes a slice of fmt.Stringer implementers and returns a new sorted slice
// SortStrings takes a slice of fmt.Stringer implementers and returns a new ascending sorted slice
func SortStrings[S ~[]E, E fmt.Stringer](x S) S {
n := slices.Clone(x)
slices.SortFunc(n, func(a, b E) int {
Expand Down

0 comments on commit 13da5af

Please sign in to comment.