mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
added docker image
This commit is contained in:
12
functions/sorting.go
Normal file
12
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