Gossamer Forum
Home : General : Internet Technologies :

Re: [Andy] Good sorting algorithm...

Quote Reply
Re: [Andy] Good sorting algorithm... In reply to
Well thats handled automatically using the LIMIT clause.

If you do:

SELECT * FROM Table ORDER BY isNew DESC LIMIT 1,5

....you'll get your first five new links, then:

SELECT * FROM Table ORDER BY isNew DESC LIMIT 6,5

...will show your remaining non new links.
Subject Author Views Date
Thread Good sorting algorithm... Andy 6608 Feb 6, 2003, 4:13 AM
Thread Re: [Andy] Good sorting algorithm...
Paul 6265 Feb 6, 2003, 4:15 AM
Thread Re: [Paul] Good sorting algorithm...
Andy 6293 Feb 6, 2003, 4:20 AM
Thread Re: [Andy] Good sorting algorithm...
Andy 6240 Feb 6, 2003, 5:01 AM
Thread Re: [Andy] Good sorting algorithm...
Paul 6194 Feb 6, 2003, 7:54 AM
Thread Re: [Paul] Good sorting algorithm...
Andy 6237 Feb 6, 2003, 8:05 AM
Thread Re: [Andy] Good sorting algorithm...
Paul 6193 Feb 6, 2003, 9:05 AM
Post Re: [Paul] Good sorting algorithm...
Andy 6198 Feb 6, 2003, 9:24 AM