mirror of
https://github.com/Theodor-Springmann-Stiftung/kgpz_web.git
synced 2025-10-29 09:05:30 +00:00
Added sorting to arr in xmlprovider
This commit is contained in:
@@ -39,12 +39,13 @@ func (i Issue) Keys() []string {
|
||||
}
|
||||
|
||||
res := make([]string, 2)
|
||||
res = append(res, i.Reference())
|
||||
|
||||
date := i.Datum.When.String()
|
||||
if date != "" {
|
||||
res = append(res, date)
|
||||
}
|
||||
|
||||
res = append(res, i.Reference())
|
||||
i.keys = res
|
||||
|
||||
return res
|
||||
@@ -55,7 +56,7 @@ func (i Issue) Year() int {
|
||||
}
|
||||
|
||||
func (i Issue) Reference() string {
|
||||
return strconv.Itoa(i.Number.No) + "-" + strconv.Itoa(i.Datum.When.Year)
|
||||
return strconv.Itoa(i.Datum.When.Year) + "-" + strconv.Itoa(i.Number.No)
|
||||
}
|
||||
|
||||
func (i Issue) String() string {
|
||||
|
||||
Reference in New Issue
Block a user