How does MLZ sort the (sub)collections? It doesn't seem to follow the Unicode sequence. For example, parentheses and brackets in collection names seem to be ignored by MLZ.
Basically the sorting (collation) is locale dependent (i.e. follows Unicode conventions), except that we ignore punctuation and case. The one exception is leading ASCII punctuation. In that case, we take the punctuation into account, unless the leading punctuation is _solely_ composed of opening braces/brackets/parentheses or single/double quotes.
In all our discussion it seemed natural to ignore leading quotes/parentheses.
Can you give us examples of collection names that sort in unexpected manner?
If Zotero's rule is to "recognize leading ASCII punctuations that are not opening braces/brackets/parentheses or quotes", then Zotero (or MLZ) is not behaving in an unexpected manner.
It is more natural to ignore punctuations in entry names, but I'm surprised that people decided it was more natural to ignore leading quotes or parentheses in sorting (sub)collection names as well.
It's been my old trick to add bracket/parenthesis in folder/file names to artificially change their sort order. I thought the same trick would be handy in Zotero (sub)collection names.
I'll check the code later. I don't remember doing anything special for collection listings. Do sorts behave differently than in Zotero proper?
I don't remember how Zotero proper behaved. It's been too long.
Basically the sorting (collation) is locale dependent (i.e. follows Unicode conventions), except that we ignore punctuation and case. The one exception is leading ASCII punctuation. In that case, we take the punctuation into account, unless the leading punctuation is _solely_ composed of opening braces/brackets/parentheses or single/double quotes.
In all our discussion it seemed natural to ignore leading quotes/parentheses.
Can you give us examples of collection names that sort in unexpected manner?
It is more natural to ignore punctuations in entry names, but I'm surprised that people decided it was more natural to ignore leading quotes or parentheses in sorting (sub)collection names as well.
It's been my old trick to add bracket/parenthesis in folder/file names to artificially change their sort order. I thought the same trick would be handy in Zotero (sub)collection names.
Yeah, I haven't touched @aurimas' work there. MLZ will continue to shadow Zotero on this score.