MDL-30646 default qbank sort should only use visible columns.

This commit is contained in:
Tim Hunt
2011-12-15 18:39:21 +00:00
parent 73c0d46416
commit 29ded2d68a
2 changed files with 6 additions and 2 deletions
+4
View File
@@ -1106,6 +1106,10 @@ class quiz_question_bank_view extends question_bank_view {
'editaction', 'previewaction');
}
protected function default_sort() {
return array('qtype' => 1, 'questionnametext' => 1);
}
/**
* Let the question bank display know whether the quiz has been attempted,
* hence whether some bits of UI, like the add this question to the quiz icon,