Gossamer Forum
Home : Products : Gossamer Links : Discussions :

getting NEW links to list before random ones

Quote Reply
getting NEW links to list before random ones
OK...custom or simply a hack I'm missing???...

I use rand() as the sort order for my category pages...works great...random listings every build....BUT

..NEW links are mixed in...in a random order....

Any way to get NEW links to list first?? some sort of filter I suppose..
Quote Reply
Re: [XPorn] getting NEW links to list before random ones In reply to
i don't know if this will work, but try this in the sort order...

isNew, rand()

you might want to check that isNew is the right name for that field?

r

Last edited by:

ryel01: May 5, 2004, 7:53 PM
Quote Reply
Re: [ryel01] getting NEW links to list before random ones In reply to
oh boy..soooo close...

It some what works...but places the NEW links on the bottom of the listings.....that was using
isNew,rand()

if I reverse them.....it doesn't work at all...... gotta eb some non-custom way!!

Thx!
Quote Reply
Re: [XPorn] getting NEW links to list before random ones In reply to
Got it to work

isNew DESC,rand()


Thanks!!!!!
Quote Reply
Re: [XPorn] getting NEW links to list before random ones In reply to
excellent - quite a good way to sort them.

regan