Hi Joseph,
it's a very interesting idea to use PHP's "natcasesort" sorting function. At the moment, the sorting is done by the
database functions when the questions are fetched by the following line in the in the "question_list" function in "question/editlib.php" (about line 255)
$questions = get_records_select(
'question',
"category IN ($categorylist) AND parent = '0' $showhidden",
$sortorder,
'*',
$page*$perpage,
$perpage
) at this point,
$sortorder is one of the following:
- name, qtype ASC : Sort by name
- qtype, name ASC : Sort by type, name
- id ASC : Sort by age
I myself am not able to update this script, but I think it would certainly be worth mentioning "natural" sorting over on
the forum for the Quiz moduleregards
Gordon