diff --git a/internal/notes/notes.go b/internal/notes/notes.go index fae8c47..f0ef11b 100644 --- a/internal/notes/notes.go +++ b/internal/notes/notes.go @@ -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 {