-
Bug
-
Resolution: Done
-
Minor
-
None
-
4.2
-
MOODLE_402_STABLE
See the following for a good description: https://php.watch/versions/8.2/ksort-SORT_REGULAR-order-changes
From 8.2, when the optional flags parameter is provided and set to SORT_REGULAR, change in behaviour means that alphabetical keys are sorted prior to numeric keys.
Example: https://3v4l.org/UJhGr
There are no explicit usages of SORT_REGULAR in the codebase, however there are many cases of ksort without explicit sorting methods, so SORT_REGULAR{{ applies by default. See attached text file.}}
Each usage needs to be checked and case-by-case decide what is needs to be done. This will be either:
- Leave the code as is because the new sorting behaviour SORT_REGULAR doesn't make much difference to the functionality or is better than it was
- Rewrite the behavior using uksort and an anonymous function to implement the old/previous/original ksort behavior
For third party libraries we should:
- IF they are: Pull them in ASAP
- If they are not, is there a PR for them already?
- If so, can we help get it over th eline?
- If not, see if we can help do the work
- is parent of
-
MDL-77480 PHP 8.2: ksort(...) - block_recentlyaccesseditems
-
- Closed
-
-
MDL-77481 PHP 8.2: ksort(...) - Repositories
-
- Closed
-
-
MDL-77482 PHP 8.2: ksort(...) - Course
-
- Closed
-
-
MDL-77483 PHP 8.2: ksort(...) - Cache
-
- Closed
-
-
MDL-77484 PHP 8.2: ksort(...) - customfield
-
- Closed
-
-
MDL-77485 PHP 8.2: ksort(...) - Admin Tools
-
- Closed
-
-
MDL-77486 PHP 8.2: ksort(...) - Messaging
-
- Closed
-
-
MDL-77487 PHP 8.2: ksort(...) - User Profile
-
- Closed
-
-
MDL-77488 PHP 8.2: ksort(...) - Question
-
- Closed
-
-
MDL-77489 PHP 8.2: ksort(...) - Global Search
-
- Closed
-
-
MDL-77490 PHP 8.2: ksort(...) - tcpdf
-
- Closed
-
-
MDL-77491 PHP 8.2: ksort(...) - Accesslib
-
- Closed
-
-
MDL-77492 PHP 8.2: ksort(...) - Form
-
- Closed
-
-
MDL-77493 PHP 8.2: ksort(...) - phpspreadsheet
-
- Closed
-
-
MDL-77494 PHP 8.2: ksort(...) - mlbackend
-
- Closed
-
-
MDL-77495 PHP 8.2: ksort(...) - Guzzle
-
- Closed
-
-
MDL-77496 PHP 8.2: ksort(...) - SimplePie
-
- Closed
-
-
MDL-77497 PHP 8.2: ksort(...) - Core Libs
-
- Closed
-
-
MDL-77498 PHP 8.2: ksort(...) - horde
-
- Closed
-
-
MDL-77499 PHP 8.2: ksort(...) - Tests
-
- Closed
-
-
MDL-77500 PHP 8.2: ksort(...) - Grades
-
- Closed
-
-
MDL-77501 PHP 8.2: ksort(...) - oAuth
-
- Closed
-
-
MDL-77502 PHP 8.2: ksort(...) - SCSS
-
- Closed
-
-
MDL-77503 PHP 8.2: ksort(...) - htmlpurifier
-
- Closed
-
-
MDL-77504 PHP 8.2: ksort(...) - openspout
-
- Closed
-
-
MDL-77505 PHP 8.2: ksort(...) - TinyMCE
-
- Closed
-
-
MDL-77506 PHP 8.2: ksort(...) - Flickr
-
- Closed
-
-
MDL-77507 PHP 8.2: ksort(...) - availability
-
- Closed
-
-
MDL-77508 PHP 8.2: ksort(...) - Reports
-
- Closed
-
-
MDL-77509 PHP 8.2: ksort(...) - Backup
-
- Closed
-
-
MDL-77510 PHP 8.2: ksort(...) - h5p
-
- Closed
-
-
MDL-77511 PHP 8.2: ksort(...) - Badges
-
- Closed
-
-
MDL-77512 PHP 8.2: ksort(...) - chat
-
- Closed
-
-
MDL-77513 PHP 8.2: ksort(...) - Quiz
-
- Closed
-
-
MDL-77514 PHP 8.2: ksort(...) - Choice
-
- Closed
-
-
MDL-77515 PHP 8.2: ksort(...) - Forum
-
- Closed
-
-
MDL-77516 PHP 8.2: ksort(...) - lti
-
- Closed
-
-
MDL-77518 PHP 8.2: ksort(...) - assign
-
- Closed
-
-
MDL-77519 PHP 8.2: ksort(...) - glossary
-
- Closed
-
-
MDL-77520 PHP 8.2: ksort(...) - lesson
-
- Closed
-
-
MDL-77521 PHP 8.2: ksort(...) - database
-
- Closed
-
-
MDL-77522 PHP 8.2: ksort(...) - BBB
-
- Closed
-