diff --git a/library/think/db/builder/Sqlsrv.php b/library/think/db/builder/Sqlsrv.php index ed961491..b97886ac 100644 --- a/library/think/db/builder/Sqlsrv.php +++ b/library/think/db/builder/Sqlsrv.php @@ -56,9 +56,8 @@ class Sqlsrv extends Builder $array[] = $this->parseKey($key, $options, true) . ' ' . $sort; } } - $order = implode(',', $array); - return ' ORDER BY ' . $order; + return ' ORDER BY ' . implode(',', $array); } /**