Last modified: 2008-12-01 00:37:19 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 T18494, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16494 - People articles with single category sort incorrectly on category lists
People articles with single category sort incorrectly on category lists
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-29 16:40 UTC by Greg Salter
Modified: 2008-12-01 00:37 UTC (History)
1 user (show)

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


Attachments

Description Greg Salter 2008-11-29 16:40:35 UTC
(I searched and couldn't find this)

It appears that when an article about a person has a single actual category tag (ie. ([Category:foobar]]), on the category page itself that lists all the people, the article will sort by first name on the list, instead of last name like those articles with multiple categories.

For example, I'm currently adding articles on people to [[Category:TED Speakers]]. But for articles that didn't previously already have an category, such as:

* Kristen Ashburn
* David Bolinsky

These sorted by their first name on the TED Speakers page. I was able to work around this by adding a pipe and their surname to the end of the category, but it's still annoying.

NOTE: I say "ACTUAL category" above, because while David Bolinsky has only the single category I added, he has other stub tags that append categories to his article. But it would still sort incorrectly (without the workaround).
Comment 1 Lejonel 2008-12-01 00:37:19 UTC
Sorting by page title is the deault when no sort key is specified. Adding a pipe and a sortkey, or using {{DEFAULTSORT:sortkey}} (the surname is the sortkey your examples) is the way to specify a sort order in categories.

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


Navigation
Links