使用二级查询 首先将字符串的列转成数字,然后排序 select * from (select CONVERT(k.key,SIGNED) as kid,path from kpv k) t ORDER BY t.kid asc;