It is currently 16 Apr 2024, 07:49
   
Text Size

Bug - Color sorting with multi-colors cards is not correct

Moderators: charmer, CCGHQ Admins

Bug - Color sorting with multi-colors cards is not correct

Postby anthonybe » 07 Nov 2013, 22:07

Hello,

When you sort the list of cards based on color column, you got a correct order for card with one color (e.g.: W, U, B ...) but for cards with multi color (e.g.: BG, UB ...), the result is not correct.
Actually, multi-colors sort is done by 'alphabetical' order instead of 'magic gathering' order.

Here is an example with Tempest set. The set contains 10 cards with multi color mana.
The correct order in the set is:

Dracoplasm
Lobotomy
Ranger en-Vec
Segmented Wurm
Selenia, Dark Angel
Sky Spirit
Soltari Guerrillas
Spontaneous Combustion
Vhati il-Dal
Wood Sage

The order in Magic Album is:

Vhati il-Dal
Spontaneous Combustion
Segmented Wurm
Lobotomy
Wood Sage
Dracoplasm
Selenia, Dark Angel
Ranger en-Vec
Soltari Guerrillas
Sky Spirit

Would it be possible to fix issue ?
Otherwise, your software is great ;-)

Anthony.
anthonybe
 
Posts: 19
Joined: 07 Nov 2013, 21:51
Has thanked: 0 time
Been thanked: 2 times

Re: Bug - Color sorting with multi-colors cards is not corre

Postby Goblin Hero » 08 Nov 2013, 06:14

anthonybe wrote:Would it be possible to fix issue ?
Yes, if you explain HOW I should do it. It is not obvious what is the "correct order".
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
User avatar
Goblin Hero
Site Admin
Site Admin
 
Posts: 1992
Joined: 23 Oct 2005, 09:37
Location: Russia
Has thanked: 218 times
Been thanked: 351 times

Re: Bug - Color sorting with multi-colors cards is not corre

Postby anthonybe » 08 Nov 2013, 16:22

Goblin Hero wrote:Yes, if you explain HOW I should do it. It is not obvious what is the "correct order".
Multicolor cards are first grouped and sorted between Green color cards and Artefact cards. Like you do for now.
Afterwards, inside multicolor group, there is another group distinction and sorting order:
  1. Cards with combined SINGLE color mana cost: {W} {W} {U}, {B} {G} ...
  2. Cards with MULTI color mana cost: {WU} {WU}, {BG} ...

In each of these groups, cards are sorted Alphabetically on their English name. This criteria is available for other colors and artifact cards as well.

You can see an example with 'Return to Ravnica' set on the Gatherer.

Anthony.
anthonybe
 
Posts: 19
Joined: 07 Nov 2013, 21:51
Has thanked: 0 time
Been thanked: 2 times

Re: Bug - Color sorting with multi-colors cards is not corre

Postby Goblin Hero » 09 Nov 2013, 07:34

Ok. Please, create a feature request in the bug tracker
http://www.slightlymagic.net/forum/tracker.php?p=2
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
User avatar
Goblin Hero
Site Admin
Site Admin
 
Posts: 1992
Joined: 23 Oct 2005, 09:37
Location: Russia
Has thanked: 218 times
Been thanked: 351 times

Re: Bug - Color sorting with multi-colors cards is not corre

Postby anthonybe » 09 Nov 2013, 09:39

Done.

Thanks in advance.
anthonybe
 
Posts: 19
Joined: 07 Nov 2013, 21:51
Has thanked: 0 time
Been thanked: 2 times

Re: Bug - Color sorting with multi-colors cards is not corre

Postby Nexensis » 10 Nov 2013, 16:56

It doesn't look to me like Gatherer differentiates between hybrid multicolour and regular multicolour as you say it does, anthonybe. Here is the result of a search for all multicolour cards in RTR, sorted by colour:

[url]http://gatherer.wizards.com/Pages/Search/Default.aspx?sort=color+&output=compact&action=advanced&set=|[%22Return%20to%20Ravnica%22]&color=%20^(|[W]|[U]|[B]|[R]|[G])[/url]

As you can see, the hybrid cards are interspersed with the regular multicolour cards. Also, regarding sorting multicoloured cards just alphabetically: why? What's the point of sorting by colour if you're not actually sorting by colour? It's true that Wizards sorts regular multicoloured cards first, followed by hybrid cards, each sorted alphabetically. This is the order they use for organizing a set by collector numbers. But that doesn't seem very refined, and I don't think it's very useful. Doesn't it make sense for all cards of a certain colour combination to be grouped together? The real question is: what order should the colour combinations be in?

So, let's take a look at how Gatherer sorts all the different colour combinations and see if we can glean an "official" sorting method. A search of Guildpact, Alara Reborn, and Commander (2011) will provide at least one card of each colour combination (including the 4-colour Nephilim, and those weird hybrid/multicolours from Alara Reborn):

[url]http://gatherer.wizards.com/Pages/Search/Default.aspx?sort=color+&output=compact&action=advanced&set=|[%22Alara%20Reborn%22]|[%22Guildpact%22]|[%22Magic:%20The%20Gathering-Commander%22]&color=%20^(|[W]|[U]|[B]|[R]|[G])[/url]

The output seems to follow a logical order... for the most part. It starts with all the 2-colour pairs, then it has the 3-colour shards, then 4-colour, then 5-colour, and then, for some reason, the 3-colour wedges. So the first part of a colour sort is # of colours, excepting wedges. The secondary sort within colours is in WUBRG order according to the order in which the mana symbols appear on the card, except, again, when you get to the wedges, in which case order doesn't matter (in the Gatherer search, it's sorted alphabetically after colours, so they are just in alphabetical order). So it seems like the wedge cards were just neglected and tacked on at the end, which I don't think should be used as the basis for a proper colour sort.

Also note that there is an official order for how the mana symbols appear on cards, which is to go clockwise around the colour wheel (WUBRG) while leaving as little space as possible between the colours you're using. For example WU instead of UW, because UW has BRG between it, and GWU instead of WUG, because BR would be between U and G. This breaks down a little with the hybrid/multicolour mix cards of Alara Reborn. These cards, like Bant Sureblade, are grouped with the rest of their respective colour combination, disregarding the actual order of the mana symbols, which always places the hybrid part first. This shows that what's important is the base colours of the card, e.g. GWU in Bant Sureblade, even though with the hybrid symbol coming first, the order on the card is GUW.

As for wedges, the order is to put the common enemy first, followed by the allied colour pair. To be analagous to the colour pairs, I would say that all 3-colour combinations should be grouped together and sorted in WUBRG order. I think a complete colour sort in ascending order should look like this:

{W}
{U}
{B}
{R}
{G}
{W} {U} Azorius
{W} {B} Orzhov
{U} {B} Dimir
{U} {R} Izzet
{B} {R} Rakdos
{B} {G} Golgari
{R} {G} Gruul
{R} {W} Boros
{G} {W} Selesnya
{G} {U} Simic
{W} {U} {B} Esper
{W} {B} {R} "Dega"
{U} {B} {R} Grixis
{U} {R} {G} "Ceta"
{B} {R} {G} Jund
{B} {G} {W} "Necra"
{R} {G} {W} Naya
{R} {W} {U} "Raka"
{G} {W} {U} Bant
{G} {U} {B} "Ana"
{W} {U} {B} {R}
{U} {B} {R} {G}
{B} {R} {G} {W}
{R} {G} {W} {U}
{G} {W} {U} {B}
{W} {U} {B} {R} {G}
Artifacts
Lands

I think another valid option would be to sort it mostly the same, but within colour pairs, group allied colours first (WU, UB, BR, RG, GW) then enemy colours (WB, UR, BG, RW, GU). Then, in 3-colour combinations, group shards first (WUB, UBR, BRG, RGW, GWU) followed by wedges (WBR, URG, BGW, RWU, GUB).

Does anyone else have any thoughts on a "correct" order for sorting by colour?



Edit: Addressed another issue I thought of. Also, the URL tags aren't working properly, and when I leave them off the forum doesn't display the link properly, so you'll have to copy/paste the links yourself if you're interested in seeing them :(
User avatar
Nexensis
 
Posts: 32
Joined: 09 Mar 2011, 06:06
Has thanked: 54 times
Been thanked: 14 times

Re: Bug - Color sorting with multi-colors cards is not corre

Postby Goblin Hero » 11 Nov 2013, 13:02

I've implemented Nexensis's sort order. Just wait for the next update.
When you´re a goblin, you don´t have to step forward to be a hero -- everyone else just has to step back.
User avatar
Goblin Hero
Site Admin
Site Admin
 
Posts: 1992
Joined: 23 Oct 2005, 09:37
Location: Russia
Has thanked: 218 times
Been thanked: 351 times


Return to Magic Album

Who is online

Users browsing this forum: No registered users and 11 guests


Who is online

In total there are 11 users online :: 0 registered, 0 hidden and 11 guests (based on users active over the past 10 minutes)
Most users ever online was 4143 on 23 Jan 2024, 08:21

Users browsing this forum: No registered users and 11 guests

Login Form