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
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