Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Sorting in YahooSubcats.pm

Quote Reply
Sorting in YahooSubcats.pm
The default for YahooSubcats.pm is to list sub-categories in ID order, ie: no sorting. Can anyone suggest a simple modification for alphabetical sorting?
Quote Reply
Re: [YoYoYoYo] Sorting in YahooSubcats.pm In reply to
Hi,

I'm not sure about this but try changing this:

my $table = $DB->table('Category');
my $sth=$table->select({'FatherID' => $catid},['Full_Name','Name']);


to this:

my $table = $DB->table('Category');
$table->select_options ('ORDER BY Name');
my $sth=$table->select({'FatherID' => $catid},['Full_Name','Name']);

(untested)

--
Matt G