ndunand / moodle-mod_choicegroup

Moodle "Group Choice" plugin
https://moodle.org/plugins/mod_choicegroup
34 stars 57 forks source link

Wrong sorting when many groups autocreated #105

Closed cdipe closed 7 years ago

cdipe commented 7 years ago

Group choice have a problem when using auto created, two-digit number of courses sort order "Sort groups by Name" gets bad (pic 1 and 2) and "1" must be manually changed to "01", "2" to "02" and so on (pic 3).

1

2

3

This problem isn't as big a problem, when auto creating group using letters instead of numbers; you get A-AZ, then B-BZ, then C-CZ and so on. (pic 4)

4

I will also put this in Moodle tracker, since it looks the same when creating the groups so maybe that it's a moodle core problem to begin with. But since when it actually becomes a big issue is when using Group Choice, mayby you guys developing the plugin have a quicker solution.

cdipe commented 7 years ago

It was an old issue in Moodle tracker, I guess they don't prioritize this. But when using Group Choice it does become a problem. I added versions 3.0.8 and 3.2.3 that I know have the problem. https://tracker.moodle.org/browse/MDL-22936

ndunand commented 7 years ago

I think it is a general problem when one is "sorting" numerical things alphabetically. Do you think it should be addressed in this plugin?

cdipe commented 7 years ago

Hi! The best would be if Moodle solved the general problem, but judging from the time the issue has spent in the tracker that doesn't seem very likely. If there's a separate solution for Group Choice that would be appreciated.

ndunand commented 7 years ago

Hi,

I don't think I want to modify the plugin over this, especially since most other computer sorts behave identically.

cdipe commented 7 years ago

I can understand that. I'll link the tracker thread to this conversation, for the moodle developers to learn about issues caused by what might seem like a small problem when using only moodle core functionalities.