For a set of returned results (business directory - see www.sussexfind.co.uk), I wish to always display Enhanced listings first at the top of the page.
At present I do this by simply sorting by ID and ensuring that Enhanced listings have ID numbers less than regular listings - the first 1000 ID's are reserved for this. Of course the problem is when there are 2 Enhanced listings returned for a visitors search. The first Enhanced listings is always the first result on the page, the second Enhanced listings is always the second and so on.
Has anyone got any ideas on how I can randomise this for just the Enhanced listings i.e. when the record ID is less than 1000?
Basically I need two sort orders - one for Enhanced listings, one for the rest. If I can do this I should be able to randomise it.
Thanks in advance, Brian
At present I do this by simply sorting by ID and ensuring that Enhanced listings have ID numbers less than regular listings - the first 1000 ID's are reserved for this. Of course the problem is when there are 2 Enhanced listings returned for a visitors search. The first Enhanced listings is always the first result on the page, the second Enhanced listings is always the second and so on.
Has anyone got any ideas on how I can randomise this for just the Enhanced listings i.e. when the record ID is less than 1000?
Basically I need two sort orders - one for Enhanced listings, one for the rest. If I can do this I should be able to randomise it.
Thanks in advance, Brian