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

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T4177, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 2177 - Expanding sort order BEHIND the sort key
Expanding sort order BEHIND the sort key
Status: RESOLVED WONTFIX
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
All All
: Lowest enhancement with 1 vote (vote)
: ---
Assigned To: Nobody - You can work on this!
http://test.leuksman.com/index.php/Im...
:
Depends on:
Blocks:
  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: ---


Attachments

Description lɛʁi לערי ריינהארט 2005-05-15 06:47:33 UTC
URL: http://test.leuksman.com/index.php/Image:Sort_order_in_categories_01.jpg
See also: http://test.leuksman.com/index.php/Category:Sort_order

Hallo!

If you use [[Category:foo|(space)]] as a sort order for
http://test.leuksman.com/index.php/Z_-_sort_order
http://test.leuksman.com/index.php/O_-_sort_order
http://test.leuksman.com/index.php/M_-_sort_order
http://test.leuksman.com/index.php/B_-_sort_order
http://test.leuksman.com/index.php/I_-_sort_order
http://test.leuksman.com/index.php/E_-_sort_order
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
http://test.leuksman.com/index.php/X_-_sort_order
http://test.leuksman.com/index.php/Q_-_sort_order
http://test.leuksman.com/index.php/J_-_sort_order
created in that order.

Requirement the sort order should be expanded from:
{{SORT KEY}} (probably followed by {{RCID}}
to:
{{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
http://test.wikipedia.org/wiki/Category:Bugzilla/section_links

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
%20>{{GENERICNAMESPACE}}

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.


Navigation
Links