diff --git a/src/Facet.php b/src/Facet.php index c818a047..6d771d39 100644 --- a/src/Facet.php +++ b/src/Facet.php @@ -295,10 +295,7 @@ public function compileFacet() foreach ($this->order_by as $order) { $order_sub = $this->getConnection()->quoteIdentifier($order['column']).' '; - - if ($order['direction'] !== null) { - $order_sub .= ((strtolower($order['direction']) === 'desc') ? 'DESC' : 'ASC'); - } + $order_sub .= ((strtolower($order['direction']) === 'desc') ? 'DESC' : 'ASC'); $order_arr[] = $order_sub; }