mirror of
https://github.com/Theodor-Springmann-Stiftung/lenz-web.git
synced 2025-10-29 17:25:32 +00:00
Init
This commit is contained in:
12
helpers/functions/sorting.go
Normal file
12
helpers/functions/sorting.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package functions
|
||||
|
||||
import (
|
||||
"golang.org/x/text/collate"
|
||||
"golang.org/x/text/language"
|
||||
)
|
||||
|
||||
func Sort(s []string) []string {
|
||||
c := collate.New(language.German, collate.IgnoreCase)
|
||||
c.SortStrings(s)
|
||||
return s
|
||||
}
|
||||
Reference in New Issue
Block a user