initial commit
Some checks failed
ci / go (push) Has been cancelled
ci / admin-ui (push) Has been cancelled
ci / runtime-sdk (push) Has been cancelled
ci / helm (push) Has been cancelled
ci / openapi (push) Has been cancelled
ci / container (push) Has been cancelled
ci / release-config (push) Has been cancelled
ci / shared styling (push) Has been cancelled
ci / security (push) Has been cancelled
ci / all green (push) Has been cancelled
Some checks failed
ci / go (push) Has been cancelled
ci / admin-ui (push) Has been cancelled
ci / runtime-sdk (push) Has been cancelled
ci / helm (push) Has been cancelled
ci / openapi (push) Has been cancelled
ci / container (push) Has been cancelled
ci / release-config (push) Has been cancelled
ci / shared styling (push) Has been cancelled
ci / security (push) Has been cancelled
ci / all green (push) Has been cancelled
This commit is contained in:
commit
951dd8d26b
175 changed files with 50041 additions and 0 deletions
13
internal/store/sort.go
Normal file
13
internal/store/sort.go
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
package store
|
||||
|
||||
import (
|
||||
"sort"
|
||||
)
|
||||
|
||||
// sortStrings orders a string slice in place.
|
||||
func sortStrings(values []string) { sort.Strings(values) }
|
||||
|
||||
// sortSlice orders a slice in place using the supplied comparison.
|
||||
func sortSlice[T any](values []T, less func(a, b T) bool) {
|
||||
sort.Slice(values, func(i, j int) bool { return less(values[i], values[j]) })
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue