Gossamer Forum
Home : Products : Links 2.0 : Customization :

Sorting by the number DESC ?

Quote Reply
Sorting by the number DESC ?
Hi,

Does anyone know if you can sort $db_sort_links descending?

ATM - I'm using:

Code:
# Field number to sort by:
$db_sort_links = 9;

Field 9 is a number (the date, but in pure form). I'm trying to make it so it sorts from newest -> oldest (unlike now, where it does oldest-> newest)

If not, then no biggie - was just wondering Smile

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Sorting by the number DESC ? In reply to
Anyone? (even a link to a working mod would be fine - and I could work my way through that =))

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Sorting by the number DESC ? In reply to
I don't know if you want to sort the links or how to do it but I think you need to work with sorting in sub build_sorthit in db_utils.pl
Quote Reply
Re: [socrates] Sorting by the number DESC ? In reply to
Hi,

Thanks. Its not actually related to the lionks - but the Reviews, which use the same sorting method. Guess I may need to tweak it to use a different method - and then write up a new function.

Thanks for the reply though - need a while since I've worked on Links2 <G>

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!