reverse sort tags on name if equal dates

This commit is contained in:
dmaes 2022-05-11 18:26:22 +02:00
parent 76f380d3c2
commit 52055dc642
No known key found for this signature in database
GPG Key ID: EC714BCF2F94B6A6

View File

@ -25,7 +25,11 @@ func (p timeSlice) Len() int {
}
func (p timeSlice) Less(i, j int) bool {
return p[i].created.After(p[j].created)
if p[i].created.Equal(p[j].created) {
return p[i].name > p[j].name
} else {
return p[i].created.After(p[j].created)
}
}
func (p timeSlice) Swap(i, j int) {