mysql -u username -p database_name
select Field1, Name from test order by cos(Field1 * 3);
+--------+-----------+
| Field1 | Name |
+--------+-----------+
| 1 | Van |
| 1 | Vasya |
| 1 | Olga |
| 3 | Oleg |
| 5 | Ivan |
| 5 | Ivan |
| 5 | Ivanus |
| 4 | Alexander |
| 4 | Ivan |
| 4 | Zebra |
| 2 | Helen |
+--------+-----------+