diff --git a/components/com_fabrik/models/list.php b/components/com_fabrik/models/list.php index 6b3afaa487b..4c5a2b9c00f 100644 --- a/components/com_fabrik/models/list.php +++ b/components/com_fabrik/models/list.php @@ -3079,6 +3079,12 @@ public function setOrderByAndDir() { $context = 'com_' . $package . '.list' . $id . '.order.' . $postOrderBy; $this->session->set($context, $postOrderDir); + // if the order is being cleared, remove the query string so list defaults get applied + if ($postOrderDir === '-') + { + $input->set('orderby', ''); + $input->set('orderdir', ''); + } } }