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

Sorting ASC Problem

Quote Reply
Sorting ASC Problem
I am trying to sort links in ascending order based upon a number I place in a new field called 'Priority'. My Links.def file includes the following for this field:

Priority => ['17', 'INT', '10', '20', '1', '10', '^\d*\.?\d*$'],


and my Links.PM sorting has been modified to:

# The default sort orders for links.
$LINKS{build_sort_order_category} = "Priority ASC,isNew";
$LINKS{build_sort_order_new} = "Add_Date,Title";
$LINKS{build_sort_order_cool} = "Title";
$LINKS{build_sort_order_search} = "Priority ASC,isNew";


Despite this, in some categories the links are not always placed in the ascending order I would expect. In other words sometimes a link with a 'Priority' field value of 9 will be placed above a link with a 'Priority' field of 3.

Is there something that I am forgetting to do here?

Any help would be very much appreciated!

-FM
Subject Author Views Date
Thread Sorting ASC Problem rover 3693 Feb 13, 2000, 4:14 PM
Post Re: Sorting ASC Problem
rover 3622 Feb 13, 2000, 5:13 PM
Post Re: Sorting ASC Problem
dmk 3617 Feb 15, 2000, 8:39 AM
Post Re: Sorting ASC Problem
pugdog 3630 Feb 15, 2000, 1:32 PM
Post Re: Sorting ASC Problem
rover 3629 Feb 16, 2000, 4:56 AM
Post Re: Sorting ASC Problem
pugdog 3624 Feb 16, 2000, 5:28 AM
Post Re: Sorting ASC Problem
Dan Kaplan 3623 Feb 16, 2000, 5:53 AM
Post Re: Sorting ASC Problem
Alex 3621 Feb 16, 2000, 7:07 AM
Post Re: Sorting ASC Problem
pugdog 3617 Feb 16, 2000, 8:37 PM
Post Re: Sorting ASC Problem
pugdog 3634 Feb 18, 2000, 9:29 AM