diff --git a/Controller/NotesController.php b/Controller/NotesController.php index 5c17483..cff81ac 100644 --- a/Controller/NotesController.php +++ b/Controller/NotesController.php @@ -122,7 +122,7 @@ class NotesController $isAdmin = $_SESSION['role'] === 'admin'; $userid = $_SESSION['user_id']; - $files = $this->notesModel->selectFiles($userid, true); + $files = $this->notesModel->selectFiles($userid, true, $sortBy, $sortOrder); $this->view->setVars([ "files" => $files ]);