Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Sort question in category, new and cool

Quote Reply
Sort question in category, new and cool
Hello all,

I wanna sort the links to add_date with the newest first in new,cool,category and in search mode.

So i looked in this forum and i modify code in links.pm to this:

$LINKS{build_sort_order_category} = "Add_Date DESC";
$LINKS{build_sort_order_new} = "Add_Date DESC";
$LINKS{build_sort_order_cool} = "Add_Date DESC";
$LINKS{build_sort_order_search} = "Add_Date DESC";


Now start my problems :), it don't work good.

Category pages:
In static mode it sort the links but the highest is below instead of up in the list.
In dynamic mode it sort very strange, low date, high date, low date no logic in it.

When i have a span page (i set it to 50 links on a page) it's different then i told before, how strange :).

New and cool page looks ok but i have tested it enough.

In Search mode:
Sorts very strange, low date, high date, low date no logic in it.

Does any know what is wrong?

Allready thanks.

Regard Startpoint.

Subject Author Views Date
Thread Sort question in category, new and cool startpoint 3803 Aug 19, 2000, 7:04 AM
Thread Re: Sort question in category, new and cool
startpoint 3695 Aug 20, 2000, 4:35 AM
Thread Re: Sort question in category, new and cool
startpoint 3689 Aug 21, 2000, 4:44 PM
Thread Re: Sort question in category, new and cool
startpoint 3674 Aug 23, 2000, 2:34 AM
Thread Re: Sort question in category, new and cool
startpoint 3677 Aug 23, 2000, 2:52 AM
Thread Re: Sort question in category, new and cool
pugdog 3662 Aug 23, 2000, 4:35 PM
Post Re: Sort question in category, new and cool
startpoint 3654 Aug 24, 2000, 12:57 AM