MoeMemos icon indicating copy to clipboard operation
MoeMemos copied to clipboard

misc: sort tag list when load tags

Open cybaj opened this issue 1 year ago • 2 comments

added sorting tag list when writing note

cybaj avatar Nov 25 '24 09:11 cybaj

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?

mudkipme avatar Nov 25 '24 16:11 mudkipme

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.

cybaj avatar Dec 23 '24 07:12 cybaj