If I have a set of results as which for example when visualised looks like [status | date] :
[1|2012/01/06],[2|2011/04/23],[3|2012/02/12],[1|2012/11/26],[2|2012/10/13],[3|2010/03/01],[3|2010/06/27]
How would I order the results so the rows with a status of 1 have priority over status’ of 2 & 3 AND then order those ‘split’ results by the date?
If I order the status by ASC then I end up with:
[1|2012/01/06],[1|2012/11/26],[2|2011/04/23],[2|2012/10/13],[3|2012/02/12],[3|2010/03/01],[3|2010/06/27]
This separates the status’ 2 & 3.
I want a result set which is like the following:
[1|2012/01/06],[1|2012/11/26],[3|2012/02/12],[3|2010/03/01],[2|2011/04/23],[3|2010/06/27],[2|2012/10/13]
tl;dr I want to order my results by either status of 1 or status > than 1. What do I do?
You could try the following –