By default if you write order by it is considered as ascending order and if you want like highest to lowest use as: order by desc. But my question is how to sort two things like I have name and class (VarChar) both how can i sort them both? Please help. I am using MySQL query: select name,class from student order by name asc, class asc; but it's not showing what I want. Data is like: name: Mike class: Four
select name,class from student order by name asc, class asc;