Last modified: 2011-03-13 18:06:25 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 2177 - Expanding sort order BEHIND the sort key
Expanding sort order BEHIND the sort key
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
Depends on:
  Show dependency treegraph
Reported: 2005-05-15 06:47 UTC by lɛʁi לערי ריינהארט
Modified: 2011-03-13 18:06 UTC (History)
1 user (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Description lɛʁi לערי ריינהארט 2005-05-15 06:47:33 UTC
See also:


If you use [[Category:foo|(space)]] as a sort order for
and you create the pages in that order they will be listed as "ZOMBIE".

Another effect is that if you MODIFY the pages the sort order will change
according to the "''rcid''"s. That is HAZARDOUS.

A workaround is to use [[Category:foo|(space){{PAGENAME}}]] as done for with
[[Category:foo|-{{PAGENAME}}]] for
created in that order.

Requirement the sort order should be expanded from:
{{SORT KEY}} (probably followed by {{RCID}}
{{SORT KEY}}{{NAMESPACE}}:{{PAGENAME}} by default.

Best regards Reinhardt [[user:gangleri]]
Comment 1 Brion Vibber 2005-05-15 06:52:56 UTC
This sounds like perfectly normal behavior.

You deliberately set a bunch of pages with the same sort key, so they sort in the same position, and their relative 
displayed positions to each other are not well defined.

Resolving as WONTFIX.
Comment 2 David Benbennick 2006-02-12 02:32:07 UTC
I think it would be good if MediaWiki sorted the category listing by sort key,
then page name.

This is not exactly what Reinhardt has proposed above.  Under Reinhardt's
proposal, if page BAR uses sort key FOO, and page FOOB uses no sort key at all,
the category will list FOOB before BAR.  Presumably, a better method would be to
first sort by sort key, then for pages with the same key, sort by pagename. 
Then the example would display with BAR first, then FOOB.

Anyway, fixing this problem would be helpful to Wikipedia.  A common trick there
is to sort "main articles" (that logically don't really belong in a category,
but are useful to have there)
under " ".  Having them appear in random order is a wierd (if minor) glitch.
Comment 3 lɛʁi לערי ריינהארט 2006-02-15 00:07:31 UTC
(In reply to comment #2)
> ... Anyway, fixing this problem would be helpful to Wikipedia. ...

Hi David!

Made more tests at

What about using the following expanded sort key assumed that consecutive spaces
are excahnged with a single space:
<sort key><character less then %20>{{PAGENAME}}<character less then

a) <character less then %20> should be used only for the "internal" sort and
will never ever be allowed in page titles
b) {{GENERICNAMESPACE}} assures that the order does not depend on localization

best regards reinhardt [[user:gangleri]]

Note You need to log in before you can comment on or make changes to this bug.