select * from table order by a,b