ringa_lee2017-04-17 15:46:50
第一种:select * from qx_cate order by id desc;
第二种:select from qx_cate where id != 16 union all select from qx_cate where id = 16;
巴扎黑2017-04-17 15:46:50
order by cast(replace(path, ',', '') as unsigned integer)
You need to pay attention to the situation when path exceeds the range of int, or find another way
巴扎黑2017-04-17 15:46:50
Because the path is based on Alphabetical Sorting
The main question is Natural Sorting
There are related solutions online, you can find it yourself