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

Link sort order in categorys

Quote Reply
Link sort order in categorys
Hi all,

I have changed in Links.pm:

$LINKS{build_sort_order_category} = "Rating DESC,isNew,Add_Date DESC";

The function build_sort_links in nph-build.cgi works fine to sort strings.

But it compares numeric values like strings.

eg. My sort order is 'Rating' the sub gets the values
( 1.2, 9.4, 3.1, 10.0, 4.2, 5.0, 1.1) and sorts them to:
(10.0, 1.1, 1.2, 3.1, 4.2, 5.0, 9.4)

How can I make it sort numeric???

regards, alexander

Subject Author Views Date
Thread Link sort order in categorys Alex404 3357 Jun 2, 2000, 1:18 PM
Thread Re: Link sort order in categorys
pugdog 3275 Jun 2, 2000, 8:15 PM
Thread Re: Link sort order in categorys
Alex404 3243 Jun 5, 2000, 6:59 AM
Post Re: Link sort order in categorys
pugdog 3242 Jun 7, 2000, 6:02 AM
Thread Re: Link sort order in categorys
pugdog 3227 Jun 7, 2000, 6:07 AM
Thread Re: Link sort order in categorys
Robert 3238 Jun 7, 2000, 7:23 AM
Post Re: Link sort order in categorys
pugdog 3220 Jun 7, 2000, 10:08 PM