Skip to content

Commit

Permalink
Fixed issue #17647: Strange sort order of question groups in statistics
Browse files Browse the repository at this point in the history
  • Loading branch information
steffen-moser committed Feb 22, 2022
1 parent 9c30e88 commit 506dd2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/helpers/common_helper.php
Expand Up @@ -847,8 +847,8 @@ function templateDefaultTexts($sLanguage, $mode = 'html', $sNewlines = 'text')
*/
function groupOrderThenQuestionOrder($a, $b)
{
if (isset($a['group_order']) && isset($b['group_order'])) {
$GroupResult = strnatcasecmp($a['group_order'], $b['group_order']);
if (isset($a->group['group_order']) && isset($b->group['group_order'])) {
$GroupResult = strnatcasecmp($a->group['group_order'], $b->group['group_order']);
} else {
$GroupResult = "";
}
Expand Down

0 comments on commit 506dd2a

Please sign in to comment.