I am trying to have my results returned in alphabetical order BUT also ordered by a certain element.
To be more specific, for a business listings website, I want the listings that customers are paying for to show up first, followed by the regular unpaid listings, all of this in alphabetical order.
Right now, I am using
"order by intpaid desc"
intpaid meaning that the listing is a paid listing.
What happens with that coding is that the paid listings are listed above the unpaid listings but everything is not in alphabetical.
To see exactly what I mean, click on this link and enter Insurance - Life as the Category and AL as the state. Then press find. You will see my two test paid listings on top, but the results are not in alphabetical order.
How does one put them in alphabetical order? Does it involve using subqueries, something along the lines of ordering by intPaid in descending order after ordering by Business Name in descending order?
Any and all help would be greatly appreciated!
Tirus
