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)
|
log.Printf("Tagset is %v", tagSet)
|
||||||
|
|
||||||
tags := make([]string, len(tagSet))
|
return slices.Sorted(maps.Keys(tagSet))
|
||||||
i := 0
|
|
||||||
for tag := range tagSet {
|
|
||||||
tags[i] = tag
|
|
||||||
i++
|
|
||||||
}
|
|
||||||
return tags
|
|
||||||
}
|
}
|
||||||
|
|
||||||
func fmtPath(path string) string {
|
func fmtPath(path string) string {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue