Page MenuHomePhabricator

People articles with single category sort incorrectly on category lists
Closed, DeclinedPublic

Description

Author: gregsalter

Description:
(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).

Version: unspecified
Severity: normal

Details

Reference
bz16494

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:24 PM
bzimport set Reference to bz16494.
bzimport added a subscriber: Unknown Object (MLST).

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.