User talk:Simetrical/Collation
Add topicAppearance
Latest comment: 14 years ago by Simetrical in topic Prefixing behavior
Prefixing behavior
[edit]In regards to "When cl_raw_sortkey is not null, append the page title (or namespace and title) before converting to a binary sortkey. This way you can give " " as a sortkey for a bunch of things and they'll all sort appropriately..." - Well this does seem logical in most cases, what if you have:
- A page named "zzzz" with a sortkey of "f" (so a combined binary sortkey of fzzzz).
- A page named "aaa" with a sortkey of "fb" (combined binary sortkey of fbaaa).
Then page 2 (sortkey fb) would sort before page 1 (sortkey f). However the expected behaviour in this case I think would be the opposite as the specified sortkeys sort in the reverse order. (hopefully that made sense) Bawolff 20:15, 26 July 2010 (UTC)
- Hmm, you're correct. I need to add something in between that will sort before everything else. But that will depend on the collation function . . . for now I'll cheat and use a null byte, I guess, but this will have to be revisited when we use a real collation function. âSimetrical (talk â˘Â contribs) 21:37, 26 July 2010 (UTC)
- Done in r69977, thanks. âSimetrical (talk â˘Â contribs) 22:04, 26 July 2010 (UTC)