MoeMemos
MoeMemos copied to clipboard
misc: sort tag list when load tags
added sorting tag list when writing note
The tag list is sorted with localizedCaseInsensitiveCompare at https://github.com/mudkipme/MoeMemos/blob/main/MoeMemos/Model/NestedTag.swift#L39
Did you encounter any issues with tag list sorting?
Ah, okay. The PR includes two sorting about root tags and these nested ones.
Yes. When I add tag to a memo, the tag list shows up not sorted. In the code you mentioned, I think that the sorting is applied to nested ones, not root tags.
Sorting the root tags list quite is useful to someone uses a long tag list like me.