File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Models/AnonymousQuestions Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,10 @@ public function __construct(Semester $semester)
31
31
*/
32
32
public function collection (): \Illuminate \Support \Collection
33
33
{
34
- return $ this ->semester ->answerSheets ;
34
+ return $ this ->semester ->answerSheets ()
35
+ ->orderBy ('year_of_acceptance ' )
36
+ ->inRandomOrder () // so that they cannot be tracked as easily
37
+ ->get ();
35
38
}
36
39
37
40
/**
Original file line number Diff line number Diff line change @@ -89,13 +89,13 @@ public static function createForCurrentUser(Semester $semester = null): AnswerSh
89
89
/**
90
90
* Returns an array with the data associated with the sheet:
91
91
* year of acceptance and then textual answers to the questions
92
- * in order of ascending id .
92
+ * in order of their ids .
93
93
* (For multiple-choice questions, the separators between the choices are commas.)
94
+ * The id of the sheet is omitted for better pseudonomity.
94
95
*/
95
96
public function toArray (): array
96
97
{
97
98
$ row = [
98
- $ this ->id ,
99
99
$ this ->semester ->tag ,
100
100
$ this ->year_of_acceptance
101
101
];
You can’t perform that action at this time.
0 commit comments