It is possible to set order for questions which are added directly into a quiz (on quiz questions page which appears when "Questions" button in toolbar or "Manage quiz questions" icon is clicked on quizzes page). It is not possible to change questionsI order if they are loaded form a question category question pool. In this case questions will be selected in random order from question bank.
If you want to sort question categories by category id on frontend part, open <joomla_directory>/administrator/components/com_ariquiz/modules/userquiz.php file, find the following code in "composeUserQuiz" method:
Code: |
if ($paging == 'SeparateByCat')
{
$catPagesMapping = array();
|
and replace it with the following one:
Code: |
if ($paging == 'SeparateByCat')
{
$questions = AriUtils::sortAssocArray($questions, 'QuestionCategoryId', 'asc', 'natural');
$catPagesMapping = array();
|
PS: We will ability to set order for question categories in a future version of the extension.
Regards,
ARI Soft