Does anybody know if it's possible to ORDER BY something conditionally
Basically, I want to order by `ranking` ASC where `ranking` isn't '0' , and then display the '0' ones afterwards.
I know it's easily done with more than one query but I'm interested to know if it's possible with just one query.
Currently it's:
0
0
0
0
1
5
38
192
And I want:
1
5
38
192
0
0
0
0
Basically, I want to order by `ranking` ASC where `ranking` isn't '0' , and then display the '0' ones afterwards.
I know it's easily done with more than one query but I'm interested to know if it's possible with just one query.
Currently it's:
0
0
0
0
1
5
38
192
And I want:
1
5
38
192
0
0
0
0