Skip to content

Commit

Permalink
Fixed issue #17916: Sorting of answer options in statistics screen
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed May 16, 2022
1 parent 59e0de2 commit 50f9062
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions application/models/Answer.php
Expand Up @@ -98,6 +98,13 @@ public function rules()
);
}

public function defaultScope()
{
return array(
'order' => 'sortorder, code'
);
}

/**
* @param integer $qid
* @return CDbDataReader
Expand Down

0 comments on commit 50f9062

Please sign in to comment.