There is some problem in sorting with mysql to show records in ASC or DESC order.
there is field in mysql id, name, status
my result with mysql query with sort order by id ASC
- 1, DE10, 1
- 2, DE15, 1
- 3, DE20, 1
- 4, 4DE40, 1
- 5, 5DE70, 1
- 6, DE100, 1
- 7, DE35, 1
by want to display result as below mention format
- 1, DE10, 1
- 2, DE15, 1
- 3, DE20, 1
- 7, DE35, 1
- 4, 4DE40, 1
- 5, 5DE70, 1
- 6, DE100, 1
how is that possible in mysql or any other solution for the same