Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Sort By Date & Month

Quote Reply
Sort By Date & Month
Hello All,

Where suppose i edit to make a category and title links sort by ealier date of month and month start by january.

Please help.

Last edited by:

reenee: Feb 21, 2002, 7:18 AM
Quote Reply
Re: [reenee] Sort By Date & Month In reply to
I'm not sure what you are asking, but right now, there is one default sort order for all categories. You change this in the Settings->Build area.

You can try to sort by : Add_Date Desc to put the newest on the top, or Add_Date ASC to put the additions in sequential order.


PUGDOG´┐Ż Enterprises, Inc.

The best way to contact me is to NOT use Email.
Please leave a PM here.
Quote Reply
Re: [pugdog] Sort By Date & Month In reply to
Thanks pugdoq,

Sorry to my english, actually i need the category listing sort by month and not the alphabetical:

eg.

April
August
December
February

To

January
February
March
April

Please help.
Quote Reply
Re: [reenee] Sort By Date & Month In reply to
Help me please ....
Quote Reply
Re: [reenee] Sort By Date & Month In reply to
Help me please .. i really desperate with this problem , how to sort a category by month, its mean by january and ending to december and not alphabetical.

Someone please help me ..
Quote Reply
Re: [reenee] Sort By Date & Month In reply to
Hi,

You would need to store the months as numbers. Change your month column to an Integer column, and store the month as 1,2,3, ... 12 instead. Then the sort will work properly. When displaying you could use a global:

sub {
my $tags = shift;
my %months = qw/1 January 2 February 3 March ... 12 December/;
return $months{$tags->{Month}};
}

which would return you the full name instead.

Cheers,

Alex
--
Gossamer Threads Inc.