Mabinogi World Wiki is brought to you by Coty C., 808idiotz, our other patrons, and contributors like you!!
Want to make the wiki better? Contribute towards getting larger projects done on our Patreon!

Forum - Numerical vs string sorting in category lists?

Overview > Mabinogi World Wiki > Help & Reports > Numerical vs string sorting in category lists?
[#1304]

I noticed that in some categories with pages that begin with the same letter (and thus are sorted under the same initial), when numbers are involved it gets a little... wonky.

For example, in Category:Music, the Jabchiel scores are listed in the following order:

  1. Jabchiel's Music Score (10)
  2. Jabchiel's Music Score (3)
  3. Jabchiel's Music Score (5)

In "Category:Mainstream Quests", the Generations are sorted as 10, 11, 12 ... 16, 19, 1; 20, 21 .. 24, 25, 2, 3... while the episodes in Iria go from 0, 1, 10, 2, 3... It definitely looks a little funky, but I guess this sequence makes sense given how strings are sorted.

I think in the case of Jabchiel's Scores, its a small enough set of pages that maybe the individual pages could just reference the category with something like "[[Category:Music|J1]], [[Category:Music|J2]], [[Category:Music|J3]]" for the 3, 5, and 10 scores respectively, but I'm wondering if anything should be done to address the Mainstream Quests category's ordering for those list of pages, or is there some sort of MediaWiki magic that could properly account for sorting page titles that follow similar naming conventions and contain a number within them?

Posted by Starshine321 on 18 March 2021 at 22:56.
Edited by Starshine321 on 18 March 2021 at 22:58.

There is in fact a way to do this! It's a little annoying though.

Normally you write links to pages like this: [[Real Page Name|Clickable Link]] the wiki creates a hyperlink out of the Clickable Link text that directs to the Real Page Name.

When you do this to with categories: [[Category:Category Name|Sorting Name]] it instead affects the ordering of category pages.

In example, check out Category:Playful Puzzle Event. There I set it so that each Playful Puzzle's category was named "Playful Puzzle NUMBER". The result is in order of release instead of alphabetical (technically it is still alphabetical).

To do it here I suggest something like: [[Category:Real Generation Name|Generation 001 000]]. I think the leading zeros should work correctly (and I've added two sets of them to account for the fact Iria had that episodic nature).

Assuming I've not messed it up, this would make something like Iria II: Episode 4 - The Black Book be Generation 018 004.

Similarly, you can do Jabchiel's Music Score 003 or Jabchiel's Music Score 03 (the former is future-proofed in case they release a Jabchiel's Music Score 100, lol).

Posted by Lint on 19 March 2021 at 05:32.
Edited by Lint on 19 March 2021 at 05:33.