Skip to content

Fix courses sorting#2

Open
tonicgi wants to merge 4 commits into
ELMO_2.1.1from
CSCTIE-1368-courses-fix
Open

Fix courses sorting#2
tonicgi wants to merge 4 commits into
ELMO_2.1.1from
CSCTIE-1368-courses-fix

Conversation

@tonicgi
Copy link
Copy Markdown

@tonicgi tonicgi commented Apr 30, 2026

Original problem: Courses were sorted incorrectly on different browsers. They might have been under incorrect modules or even outside of their module. This was especially apparent on Firefox.

Fix: Change the way courses are sorted. Previously they were sorted using calculated weight value but now for the most part they use the "hasPart" value that contains all the related courses. For example a module's hasPart contains courses that are linked with it. These are pushed into an array which should be the correct order.

We also handle modules and courses that are possibly not linked to anything. The process also contains alphabetic sorting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant