Fix intermittent sorting of criterion to actual order #18

Merged
tozh4728 merged 2 commits from 3495-grading-report-template-random-order into develop 2024-11-14 12:39:42 +01:00

2 Commits

Author SHA1 Message Date
9c185e46d8 Merge branch 'develop' into 3495-grading-report-template-random-order
All checks were successful
Build and test / build-and-test (push) Successful in 12m50s
2024-11-14 12:39:25 +01:00
0af4e538a1 Fix intermittent sorting of criterion to actual order
All checks were successful
Build and test / build-and-test (push) Successful in 7m23s
When you tried to edit a grading template in  "Project management" -> "Grading Templates" the criterion could be shown in an order not reflecting the sortOrder of the criterion.
The reason was that we only got the arbitrary order depending on the insertion order in the database.

Changed the Collection to a List, it is now an ArrayList. Also added @OrderBy("sortOrder ASC") to actually sort by the order of the criterion thus ensuring visual order is intact.
2024-11-13 12:00:03 +01:00