mirror of
https://github.com/Theodor-Springmann-Stiftung/musenalm.git
synced 2025-10-28 16:55:32 +00:00
Alphabetically sort types
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
package pages
|
||||
|
||||
import (
|
||||
"sort"
|
||||
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/app"
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/dbmodels"
|
||||
"github.com/Theodor-Springmann-Stiftung/musenalm/helpers/datatypes"
|
||||
@@ -105,6 +107,7 @@ func NewAlmanachResult(app core.App, id string, params BeitraegeFilterParameters
|
||||
}
|
||||
|
||||
types := Types_Contents(contents)
|
||||
|
||||
hs := HasScans(contents)
|
||||
|
||||
if params.OnlyScans {
|
||||
@@ -204,6 +207,8 @@ func Types_Contents(contents []*dbmodels.Content) []string {
|
||||
ret = append(ret, t)
|
||||
}
|
||||
|
||||
sort.Strings(ret)
|
||||
|
||||
return ret
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user