Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Changing Sort Order

Quote Reply
Changing Sort Order
I have set Links 2.0 to sort the links by rating, but they come out in the wrong order ie. lowest rating at the top instead of highest rating.
I would appreciate it if someone could help me out.

Quote Reply
Re: Changing Sort Order In reply to
In sub build_rate_page in nph-build.cgi, you will find multiple occurances of:

sort { $b <=> $a }

Reversing $b and $a should give you what you want.

I hope this helps.