Why do you go for sorting your query results?
SQL SELECT command to fetch data from MySQL table. Whenever you select rows, the MySQL server is free to return them in any order unless you instruct it or else by stating how to sort the result. However you sort a result set by adding
An ORDER BY section that names column or columns you want to sort by.