在mysql中 如果字段的值是中文的话,排序结果往往不符合人意。
所以如果要中文排序正常的话,可以使用如下函数
SELECT huayangare0_.id AS id1_0_, huayangare0_.create_date AS create_d2_0_, huayangare0_.create_id AS create_i3_0_, huayangare0_.uid AS uid4_0_, huayangare0_.update_date AS update_d5_0_, huayangare0_.update_id AS update_i6_0_, huayangare0_.area_name AS area_nam7_0_, huayangare0_.area_person AS area_per8_0_ FROM hua_yang_area huayangare0_ WHERE 1=1 ORDER BY CONVERT(huayangare0_.area_name USING gbk) DESC
这样得到的结果就比较正常了。