diff --git a/lib/shop.lib.php b/lib/shop.lib.php index 907a2b9a3..6c486b69e 100644 --- a/lib/shop.lib.php +++ b/lib/shop.lib.php @@ -299,7 +299,7 @@ class item_list $sql_where = " where " . implode(" and ", $where); $sql_limit = " limit " . $this->from_record . " , " . ($this->list_mod * $this->list_row); - $sql = $sql_select . $sql_common . $sql_where . $sql_limit; + $sql = $sql_select . $sql_common . $sql_where . $sql_order . $sql_limit; $result = sql_query($sql); if ($this->is_page) {