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

What's New sort order

Quote Reply
What's New sort order
I just noticed that the What's New page (the main index page) is being sorted with oldest first, not like the Links 2.0 newest first.

Quote Reply
Re: What's New sort order In reply to
Can you try editing sub sort_dates in DBSQL.pm and change:

my @sorted = sort { &_date_to_unix($a) <=> &_date_to_unix($b) } @$dates;

to:

my @sorted = sort { &_date_to_unix($b) <=> &_date_to_unix($a) } @$dates;

Just switch the $a and $b around.

Cheers,

Alex
Quote Reply
Re: What's New sort order In reply to
I've been trying to figure that stuff out.

At least I figured out where that notation
came from <G> Once you name a beast, you are on the road to taming it.