What is the order of the "my courses" list in the navigation bar?

What is the order of the "my courses" list in the navigation bar?

by Samuli Karevaara -
Number of replies: 6

Using Moodle 3.4.5. A lot of teachers complain that the list of their courses in the navigation is "random", and what is worse, it cannot be changed. Can teachers sort the courses, so that the current ones would be on top etc? Now the list is very cumbersome with 80+ courses, for example.

Average of ratings: -
In reply to Samuli Karevaara

Re: What is the order of the "my courses" list in the navigation bar?

by Samuli Karevaara -

It seems that at least MDL-27540 is somehow related to this issue. It has been labeled as "major" and it's been open for 7 years, so I'm not holding my breath tongueout

Also MDL-11613, 11 years old "major improvement" request, I voted for both.

In reply to Samuli Karevaara

Re: What is the order of the "my courses" list in the navigation bar?

by Gareth J Barnard -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Plugin developers

I think MDL-372 took around 12 years and 9 months, so anything is possible.

In reply to Gareth J Barnard

Re: What is the order of the "my courses" list in the navigation bar?

by Samuli Karevaara -

LOL, yes, there is hope smile

But as for my original question, does anyone know where the order of the courses in the My Courses list is coming from?

In reply to Samuli Karevaara

Re: What is the order of the "my courses" list in the navigation bar?

by Luiggi Sansonetti -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi

without any guarantee of my interpretation, I think that the sorting is done in 2 phases
- first the courses are sorted in order that we decide at the admin level (category management)
- then according to the order of the categories

for example:
cat1
course1-1
course2-1
course3-1
cat2
course1-2
course2-2

If we don't display "my" categories it looks like this:
course1-1
course2-1
course3-1
course1-2
course2-2

Go up one level a category in the tree structure to check if I am not mistaken....

So if you resort as
cat2
course1-2
course2-2
cat1
course1-1
course2-1
course3-1

You might have this

course1-2
course2-2
course1-1
course2-1
course3-1

In reply to Luiggi Sansonetti

Re: What is the order of the "my courses" list in the navigation bar?

by Samuli Karevaara -

Thanks for this, I thought of the same. However, something else is going on too: in the navigation block the order is different than in the navigation menu item My Courses. I tried moving courses inside the category, and sometimes they would change places in the navigation, and sometimes not. I have three courses in the Misc category, for example, and the order could be A, B, C in the category, and I'm seeing B, A, C in the nav block and A, C, B in the upper nav menu. It's driving me insane slightly annoying me.

In reply to Samuli Karevaara

Re: What is the order of the "my courses" list in the navigation bar?

by Luiggi Sansonetti -
Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi

The upper nav menu works with a A-Z sort I think, no ?

Exemple from nav (sort by cat AND after by course) :

Exemple from menu (sort by course)

(done with fordson, but i think it's general)