Skip to content

Commit eadfc3e

Browse files
authored
Update Model.php
1 parent 3c1573b commit eadfc3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vitex/ext/Model.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1051,7 +1051,7 @@ private function buildSql($iscount = false)
10511051
}
10521052
}
10531053
//orderby
1054-
if ($this->_sql['order']) {
1054+
if ($this->_sql['order'] && !$iscount) {
10551055
$sql .= ' order by ';
10561056
$_order = [];
10571057
foreach ($this->_sql['order'] as list($column, $way)) {

0 commit comments

Comments
 (0)