Ensure tags are sorted
This commit is contained in:
parent
38506f7e8b
commit
0498aadcf2
1 changed files with 1 additions and 7 deletions
|
|
@ -160,13 +160,7 @@ func (ns *NoteStore) UserTags(user string) []string {
|
|||
|
||||
log.Printf("Tagset is %v", tagSet)
|
||||
|
||||
tags := make([]string, len(tagSet))
|
||||
i := 0
|
||||
for tag := range tagSet {
|
||||
tags[i] = tag
|
||||
i++
|
||||
}
|
||||
return tags
|
||||
return slices.Sorted(maps.Keys(tagSet))
|
||||
}
|
||||
|
||||
func fmtPath(path string) string {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue