Last modified: 2013-02-06 02:01:15 UTC
Created attachment 9315 [details] Api output with sortkeys As you can see on the linked page (URL field) MediaWiki generates the following list: C Cheshire Cambridgeshire Cotswolds Cumberland (Anglia) H Hampshire A Anglia Północna Anglia Wschodnia (kraina) This is not correct sorting order. There is another section dedicated for other articles begining with C letter.
<cm ns="0" title="Cheshire" sortkey="200a4348455348495245" sortkeyprefix=""/><cm ns="0" title="Hampshire" sortkey="200a48414d505348495245" sortkeyprefix=""/><cm ns="0" title="Anglia Północna" sortkey="414e474c49412050c393c5814e4f434e41" sortkeyprefix=""/> Cheshire and Hampshire have a space as a sortkey prefix. It seems that neither the API nor the category pager are detecting this case correctly.
Interesting. Maybe $lang->firstChar( " foo" ) is somehow returning f instead of space for some reason, but i don't think it should.
hopefully this was a one time issue. The problem here is that sortkeyprefix was the empty string (note the xml), but the sortkey generated was generated as if the prefix was a single space. The firstchar method gets the sortkeyprefix, it sees that it is empty and assumes no sortkey was used. I don't see the issue presently, so hopefully it was a one time db inconsistency that got fixed. Closing worksforme. If you see this bug again, please re-open.