Extension for enabling alphabetization of sub-categories under the full Sort Key instead of the first letter of the Sort Key.

Fragment of a discussion from Project:Support desk
Jump to: navigation, search

I think this is standard in 1.17, but you might also want to check: Help_talk:Categories#Sort_by_more_than_one_character

Sidcom22:40, 21 June 2011

nope, not in 1.17. Things are always sorted by the entire sortkey, however only the first character is displayed in the sub-headings (in mediawiki core. It would be possible to make an extension similar to the hack that Sidcom links to, but I'm not aware of any such extension existing atm, and if there was one it would probably not be compatible with the recent category collation changes in 1.17).

Bawolff04:43, 22 June 2011

Sorry to be a wise-ass ;)

1.17 release notes say: "When several pages are given the same sort key, they sort by their names instead of randomly."

Sidcom15:01, 22 June 2011

>Sorry to be a wise-ass ;)

lol, being a wise-ass is where all the fun is ;)


But, I think there's two different things we're talking about. There's the big subheadings on the category page, which is always just a single letter. Then there is the actual sortkey, which except for the first letter is invisible to the user (but controls the order in which things appear in the category)

For example, if we had three pages in a category, with sortkey Bob, Bad, Baz, it'd look like

[edit] B

  • Bad
  • Baz
  • Bob

All three have different sortkeys (which determines Bad comes before Baz and Bob), but they all sort under the first letter of their sortkey.

The difference between 1.17 and 1.16, is if you have three pages all with the same sortkey, say Bob, Bob, and Bob: before they were sorted randomly, now we use what the real page's name is as a tie breaker. (To be technical, the page name is just plopped on the end of whatever the pages normal sortkey is).

Bawolff05:07, 23 June 2011

Ah.. i totally misunderstood the initial request than :)

It would be very nice to have the hack as an extension - but to me the category sorting looks kind of hard coded.

Sidcom10:36, 23 June 2011

Actually in 1.17 this changed to be much easier. (Since we now support multiple sorting algorithms in the interest of i18n, one could probably use the same mechanism to do something similar to the original request)

Bawolff17:29, 23 June 2011

Hmm, the fact its hard for extensions to define new collations in 1.17 kind of put a crimp in my plans, but behold: Extension:CategorySortHeaders

Bawolff07:46, 25 June 2011

Thank you for helping everyone. There was a month between my bump and the first answer, so I had stopped checking this (until today). Bawolff, once Wikia upgrades past 1.16.5, I bet that extension will be a big help.

24.252.14.23401:44, 1 August 2011
 
 
 
 
 
 
 
Personal tools

Variants
Actions
Navigation
Support
Download
Development
Communication
Toolbox