diff --git a/module/doc/control.php b/module/doc/control.php index 4deb163d97..a88eb8528d 100644 --- a/module/doc/control.php +++ b/module/doc/control.php @@ -173,7 +173,7 @@ class doc extends control $this->view->breadTitle = $title; $this->view->libID = $libID; $this->view->moduleID = $moduleID; - $this->view->modules = $this->doc->getDocMenu($libID, $moduleID, $orderBy == 'title_asc' ? 'name_asc' : 'id_desc', $browseType); + $this->view->modules = $this->doc->getDocMenu($libID, $moduleID, '`order`', $browseType); $this->view->docs = $this->doc->getDocsByBrowseType($libID, $browseType, $queryID, $moduleID, $sort, $pager); $this->view->attachLibs = $attachLibs; $this->view->users = $this->loadModel('user')->getPairs('noletter');