Thread:Extension talk:CategorySortHeaders/Tested/reply (4)

Well, I can only tell you, what my testwiki (MW 1.19alpha) did:

4 pages:
 * 1) Name: BSomething - Syntax:
 * 2) Name: ZSomething - Syntax:
 * 3) Name: BSomethingAndSoOn - Syntax:
 * 4) Name: ZSomethingAndMore - Syntax:

The expected order would be:


 * 1) ZsomethingAndMore (Sortkey=AA)
 * 2) BSomething (Sortkey=defaul=BSo..)
 * 3) BSomethingAndSoOn (Sortkey=GG)
 * 4) ZSomething (Sortkey=default=ZSo..)

but, what you get is:


 * 1) BSomething
 * 2) ZSomething
 * 3) ZSomethingAndMore (Sortkey=AA)
 * 4) BSomethingAndSoOn (Sortkey=GG)

Maybe it's because of the \n? That is, if the DDD page without Sortkey would default to \nDDD, but with Sortkey it would be DDD\nDDD -> so - if \n is interpreted as a key - they don't start with the same key. It should rather be \nDDD\nDDD then, or \nDDDDDD. Or you could check if it starts with \n and strip it?