Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Sorting Categories on another field

Quote Reply
Sorting Categories on another field
hi. I searched this board all over the place and while I found a lot of people asking similar questions, I couldn't find one that had the answer I needed, wondering if anyone could help.

I would like to be able to sort my categories and subcategories by another field I added to the categories db, named 'Alpha'. I think it's supposed to be changed somewhere near here:

Code:
# Go through each category and build the appropriate page.
CATEGORY: foreach $cat (sort keys %category) {
next CATEGORY if ($cat =~ /^\s*$/); # How'd that get in here? =)

is that correct? what exactly would I change it to? how do I create the key that would pull off the alpha field? (just learning perl)

Thanks in advance.

[This message has been edited by ladyofdragons (edited December 17, 1999).]
Quote Reply
Re: Sorting Categories on another field In reply to
is there anyone out there who might be able to help me? Am I at least on the right track?