Moodle

Sort teacher list by order assigned (for dispaly on front page)

Details

  • Type: New Feature New Feature
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.9.1, 1.9.2, 1.9.3
  • Fix Version/s: None
  • Component/s: Roles / Access
  • Labels:
    None
  • Affected Branches:
    MOODLE_19_STABLE

Description

As per MDL-10395 I would like the teachers assigned to a paper to be listed on the front page in the order they were assigned to the paper.

Eg. Three Teachers assigned to a course in the following order:
1. Teachername Banana
2. Teachername Apple
3. Teachername Orange

They are sorted alphabetically (2. Apple, 1. Banana, 3. Orange) but I would like the teachers to be displayed in the order assigned (1. Banana, 2. Apple, 3. Orange).

Thanks in anticipation
Teresa

P.S. Tim suggests "it also looks to me like ra.sortorder is never set to anything other than 0."

Activity

Hide
Teresa Gibbison added a comment -

added Tim & Howard as watchers so they receive notification of this issue

Show
Teresa Gibbison added a comment - added Tim & Howard as watchers so they receive notification of this issue
Hide
Teresa Gibbison added a comment -

adding Helen as watcher (as Tim & Howard haven't noticed this!!)

Show
Teresa Gibbison added a comment - adding Helen as watcher (as Tim & Howard haven't noticed this!!)
Hide
Howard Miller added a comment -

Do note that just adding someone as a watcher doesn't notify them. Add them and then and then post a comment.....

Show
Howard Miller added a comment - Do note that just adding someone as a watcher doesn't notify them. Add them and then and then post a comment.....
Hide
Howard Miller added a comment -

I'm making this a feature suggestion. What's really wanted is a UI to order the "course managers" how you like. That's non-trivial.

Show
Howard Miller added a comment - I'm making this a feature suggestion. What's really wanted is a UI to order the "course managers" how you like. That's non-trivial.
Hide
Teresa Gibbison added a comment -

Many thanks Howard, I added Tim and yourself as watchers then added the comment on the 16th Jan to notify you both I had done this (as per Tim's suggestion).

Just to clarify, I don't want to order the 'course manager' roles (if we have more than one, which we don't) but to order the participants within the one 'course manager' role as per the order they were added to the course. In our University we only have the Teacher role as course managers, I want the first teacher assigned to appear first then the others - in the order they were added to the paper (like we used to have!)

Show
Teresa Gibbison added a comment - Many thanks Howard, I added Tim and yourself as watchers then added the comment on the 16th Jan to notify you both I had done this (as per Tim's suggestion). Just to clarify, I don't want to order the 'course manager' roles (if we have more than one, which we don't) but to order the participants within the one 'course manager' role as per the order they were added to the course. In our University we only have the Teacher role as course managers, I want the first teacher assigned to appear first then the others - in the order they were added to the paper (like we used to have!)
Hide
Howard Miller added a comment -

Instead of assuming, I just looked at my 1.9 (STABLE) test site and the names don't seem to be in alphabetical order! I'll go and look at the code. Back in a minute

Show
Howard Miller added a comment - Instead of assuming, I just looked at my 1.9 (STABLE) test site and the names don't seem to be in alphabetical order! I'll go and look at the code. Back in a minute
Hide
Howard Miller added a comment -

AFAIK.... certainly in the verbose list of course manager names there is no sorting at all. I agree with Tim, I can't find any indication that the 'sortorder' field of mdl_role_assignment' is set anywhere. Someone that it was worthwhile adding an index to that field however

Show
Howard Miller added a comment - AFAIK.... certainly in the verbose list of course manager names there is no sorting at all. I agree with Tim, I can't find any indication that the 'sortorder' field of mdl_role_assignment' is set anywhere. Someone that it was worthwhile adding an index to that field however

People

Vote (1)
Watch (3)

Dates

  • Created:
    Updated: