-
Improvement
-
Resolution: Fixed
-
Minor
-
2.2.5, 2.3.2, 2.4
-
MOODLE_22_STABLE, MOODLE_23_STABLE, MOODLE_24_STABLE
-
MOODLE_22_STABLE, MOODLE_23_STABLE
-
MDL-34765-master -
Moodle uses a very basic sortorder, provided by the DBMS. If you have e.g. the following courses:
"Course 1", "Course 2", "Course 10", "Course 3" and press "Re-sort courses by name" on /course/category.php, you will get the courses in the following ("unnatural") order:
"Course 1"
"Course 10"
"Course 2"
"Course 3"
Sorting should be done in PHP to improve the user experience.
Replication steps:
- Create courses with numeric numbering similar to the list above
- Ensure that your site has more than one catagory
- Navigate to one of the courses
- In the breadcrumbs, click on the category name
Expected result: Course names should be sorted in natural order
Actual result: Course names are sorted in Unicode order.