ระบุหลายคอลัมน์ใน ORDER BY คั่นด้วยคอมมา เรียงตามลำดับที่ระบุ:
mysql> SELECT * FROM Student ORDER BY Name, Address; +------+---------+---------+-----------+ | Id | Name | Address | Subject | +------+---------+---------+-----------+ | 2 | Aarav | Mumbai | History | | 1 | Gaurav | Delhi | Computers | | 15 | Harshit | Delhi | Commerce | | 17 | Raman | Shimla | Computers | +------+---------+---------+-----------+
เรียง Name ก่อน (A-Z) แล้วค่อย Address (A-Z) ในกลุ่ม Name เดียวกัน