मैं इस तरह से करूँगा:
select id, name from Table1 order by names + 0, names;
बिना आदेश दिए:
mysql> select * from alpha;
+---+-------+
| i | name |
+---+-------+
| 1 | ab001 |
| 2 | ab010 |
| 3 | aa002 |
| 4 | cc001 |
| 5 | cb010 |
| 6 | aaa02 |
+---+-------+
6 rows in set (0.00 sec)
मेरी क्वेरी के साथ:
mysql> select i, name from alpha order by name + 0, name;
+---+-------+
| i | name |
+---+-------+
| 3 | aa002 |
| 6 | aaa02 |
| 1 | ab001 |
| 2 | ab010 |
| 5 | cb010 |
| 4 | cc001 |
+---+-------+
6 rows in set (0.00 sec)