select num from table order by cast(trim(num) as int ) asc
用整型或者传数据时你应该都trim()去掉空格。
如果都是数字,建议在数据库中还是使用整形吧