diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php
index df4668aa367..15a9d8f0c5d 100644
--- a/mod/quiz/edit.php
+++ b/mod/quiz/edit.php
@@ -453,8 +453,7 @@ echo '
';
echo '
';
$questionbank->display('editq',
$pagevars['qpage'],
- $pagevars['qperpage'], $pagevars['qsortorder'],
- $pagevars['qsortorderdecoded'],
+ $pagevars['qperpage'],
$pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'],
$pagevars['showquestiontext']);
echo '
';
diff --git a/mod/quiz/editlib.php b/mod/quiz/editlib.php
index 43dffccf09b..3914e845bbc 100644
--- a/mod/quiz/editlib.php
+++ b/mod/quiz/editlib.php
@@ -1129,8 +1129,8 @@ class quiz_question_bank_view extends question_bank_view {
return new moodle_url('/mod/quiz/edit.php', $params);
}
- public function display($tabname, $page, $perpage, $sortorder,
- $sortorderdecoded, $cat, $recurse, $showhidden, $showquestiontext) {
+ public function display($tabname, $page, $perpage, $cat,
+ $recurse, $showhidden, $showquestiontext) {
global $OUTPUT;
if ($this->process_actions_needing_ui()) {
return;
@@ -1150,7 +1150,7 @@ class quiz_question_bank_view extends question_bank_view {
// continues with list of questions
$this->display_question_list($this->contexts->having_one_edit_tab_cap($tabname),
$this->baseurl, $cat, $this->cm, $recurse, $page,
- $perpage, $showhidden, $sortorder, $sortorderdecoded, $showquestiontext,
+ $perpage, $showhidden, $showquestiontext,
$this->contexts->having_cap('moodle/question:add'));
$this->display_options($recurse, $showhidden, $showquestiontext);
diff --git a/question/edit.php b/question/edit.php
index c52b4a43299..5359fe763c6 100644
--- a/question/edit.php
+++ b/question/edit.php
@@ -65,9 +65,9 @@ $PAGE->set_heading($COURSE->fullname);
echo $OUTPUT->header();
echo '
';
-$questionbank->display('questions', $pagevars['qpage'],
- $pagevars['qperpage'], $pagevars['qsortorder'], $pagevars['qsortorderdecoded'],
- $pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'], $pagevars['showquestiontext']);
+$questionbank->display('questions', $pagevars['qpage'], $pagevars['qperpage'],
+ $pagevars['cat'], $pagevars['recurse'], $pagevars['showhidden'],
+ $pagevars['showquestiontext']);
echo "
\n";
echo $OUTPUT->footer();
diff --git a/question/editlib.php b/question/editlib.php
index 27f74a69f8d..59811a8deab 100644
--- a/question/editlib.php
+++ b/question/editlib.php
@@ -155,7 +155,6 @@ abstract class question_bank_column_base {
/**
* Output the column header cell.
- * @param int $currentsort 0 for none. 1 for normal sort, -1 for reverse sort.
*/
public function display_header() {
echo '