Filtering now works

This commit is contained in:
Simon Martens
2025-03-01 01:23:56 +01:00
parent ca33ec7be3
commit 3968f6b1b4
10 changed files with 408 additions and 127 deletions

View File

@@ -15,6 +15,13 @@ func Sort_Series_Title(series []*Series) {
})
}
func Sort_Agents_Name(agents []*Agent) {
collator := collate.New(language.German)
slices.SortFunc(agents, func(i, j *Agent) int {
return collator.CompareString(i.Name(), j.Name())
})
}
func Sort_Entries_Title_Year(entries []*Entry) {
collator := collate.New(language.German)
slices.SortFunc(entries, func(i, j *Entry) int {