• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Sorting order

  • Thread starter Thread starter Ralphey at mtgmelb.com
  • Start date Start date
R

Ralphey at mtgmelb.com

Guest
I amended the mnd.def file as follows in the hope of getting the rarity
column to sort in the order *I* want:

<group id="rarity" name="Rarity" width="10" mincount="1" maxcount="1"
dynamic="yes">
<value id="foilonly" name="Foil Only" order="1"/>
<value id="promo" name="Promotional" order="2"/>
<value id="rare" name="Rare" order="3"/>
<value id="uncommon" name="Uncommon" order="4"/>
<value id="common" name="Common" order="5"/>
<value id="fixeddeck" name="Fixed Deck" order="6"/>
</group>

Unfortunately, the rarity data still sorts alphabetically. Obviously I've
missed something either here, or somewhere else :(

Any pointers gratefully appreciated. I know I should read the dox
thoroughly, but if I did that I couldn't call myself a programmer any more :)

R.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Get A Free Psychic Reading!
Your Online Answer To Life's Important Questions.
http://us.click.yahoo.com/cjB9SD/od7FAA/uetFAA/WuQolB/TM
---------------------------------------------------------------------~->
 
At 01:09 PM 5/2/2003 +1000, you wrote:
>I amended the mnd.def file as follows in the hope of getting the rarity
>column to sort in the order *I* want:
>
> <group id="rarity" name="Rarity" width="10" mincount="1" maxcount="1"
>dynamic="yes">
> <value id="foilonly" name="Foil Only" order="1"/>
> <value id="promo" name="Promotional" order="2"/>
> <value id="rare" name="Rare" order="3"/>
> <value id="uncommon" name="Uncommon" order="4"/>
> <value id="common" name="Common" order="5"/>
> <value id="fixeddeck" name="Fixed Deck" order="6"/>
> </group>
>
>Unfortunately, the rarity data still sorts alphabetically. Obviously I've
>missed something either here, or somewhere else :(

You'll need to specify sequence="explicit" in the group tag, e.g:

> <group id="rarity" name="Rarity" width="10" mincount="1" maxcount="1"
>dynamic="yes" sequence="explicit">

Have a look at the 'date' tag group for an example of it in action. (The
example you gave also won't work because the tag names are slightly
different from the names of the tags that are generated and used.)

The change you made seems just as useful as sorting in alphabetical order
(if not more so), so I'll add it to the next release of the MND datafiles,
which should be out as soon Ed gets back to me with some details (hint
hint, Ed :). One question, why does "Foil Only" supercede "Promotional"? I
would have thought that promotional cards would be at the top, with 'foil
only' just below. But then I'm not a CCG expert... Ah, is it because
there's only a single 'foil only' card in the whole game? :)


--
Colen McAlister (colen@wolflair.com)
Lone Wolf Development www.wolflair.com


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/WuQolB/TM
---------------------------------------------------------------------~->
 
At 11:33 PM 2/05/2003, Rob wrote:

>The change you made seems just as useful as sorting in alphabetical order
>(if not more so), so I'll add it to the next release of the MND datafiles,

:)

>hint, Ed :). One question, why does "Foil Only" supercede "Promotional"? I
>would have thought that promotional cards would be at the top, with 'foil
>only' just below. But then I'm not a CCG expert... Ah, is it because
>there's only a single 'foil only' card in the whole game? :)

There are actually 2, so it's just a likelihood of obtaining thing :)

R.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs Online - Over 14,500 titles.
No Late Fees & Free Shipping.
Try Netflix for FREE!
http://us.click.yahoo.com/YoVfrB/XP.FAA/uetFAA/WuQolB/TM
---------------------------------------------------------------------~->
 
> >I amended the mnd.def file as follows in the hope of getting the
rarity
> >column to sort in the order *I* want:
> >
> > <value id="foilonly" name="Foil Only" order="1"/>
> > <value id="promo" name="Promotional" order="2"/>
> > <value id="rare" name="Rare" order="3"/>
> > <value id="uncommon" name="Uncommon" order="4"/>
> > <value id="common" name="Common" order="5"/>
> > <value id="fixeddeck" name="Fixed Deck" order="6"/>

The onlyproblem I see with this is that the 1st-Edition promo fils
will always sort at the top, which I personally would find annoying.

> The change you made seems just as useful as sorting in alphabetical
order
> (if not more so), so I'll add it to the next release of the MND
datafiles,
> which should be out as soon Ed gets back to me with some details
(hint hint, Ed :).

Which details are you after?

> One question, why does "Foil Only" supercede "Promotional"?

There are fewer in existence. FOIL ONLY are cards that should have
been printed in Foil and non-foil versions, but the non-foil were
left off, so only a few hundred exist at all.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Rent DVDs from home.
Over 14,500 titles. Free Shipping
& No Late Fees. Try Netflix for FREE!
http://us.click.yahoo.com/BVVfoB/hP.FAA/uetFAA/WuQolB/TM
---------------------------------------------------------------------~->
 
Back
Top