From c0bff2427ef1e5e4839edf438b4322e24ccf1b38 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Sun, 11 Dec 2016 21:21:06 +0400 Subject: [PATCH] =?UTF-8?q?=E5=8F=96=E5=BE=97=E4=B8=8D=E9=87=8D=E5=A4=8D?= =?UTF-8?q?=E5=AD=97=E6=AE=B5=E5=87=BD=E6=95=B0=E5=A2=9E=E5=8A=A0=E6=8E=92?= =?UTF-8?q?=E5=BA=8F=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools_sql.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools_sql.php b/tools_sql.php index a5ffc6b..f2857a9 100644 --- a/tools_sql.php +++ b/tools_sql.php @@ -369,7 +369,7 @@ { if(!$sql)return null; - $sql_result=$sql->query("select DISTINCT(".$field.") from ".$table_name); + $sql_result=$sql->query("select DISTINCT(".$field.") from ".$table_name.' ORDER BY '.$field); $result=array();