This commit is contained in:
Sara Arjona 2022-08-17 12:26:38 +02:00
commit 996b5c7d75
2 changed files with 2 additions and 11 deletions

View File

@ -303,7 +303,7 @@ class random_question_loader {
FROM {question} q
JOIN {question_versions} qv ON qv.questionid = q.id
JOIN {question_bank_entries} qbe ON qbe.id = qv.questionbankentryid
{$condition}) q";
{$condition}) q ORDER BY q.id";
return $DB->get_records_sql($sql, $param, $offset, $limit);
} else {

View File

@ -14,16 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
* Question external functions tests.
*
* @package core_question
* @category external
* @copyright 2016 Pau Ferrer <pau@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
* @since Moodle 3.1
*/
namespace core_question;
use core_question_external;
@ -40,6 +30,7 @@ require_once($CFG->dirroot . '/question/engine/tests/helpers.php');
* Question external functions tests
*
* @package core_question
* @covers \core_question_external
* @category external
* @copyright 2016 Pau Ferrer <pau@moodle.com>
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later