I want to sort by an column of ints ascending, but I want 0 to come last. Is there anyway to do this in MySql?
The following query should do the trick.
(SELECT * FROM table WHERE num!=0 ORDER BY num) UNION (SELECT * FROM table WHERE num=0)