MDL-34115 fix sorting in blocks admin UI

Comparison of arrays is not locale aware.
This commit is contained in:
Petr Škoda
2012-06-30 08:33:34 +02:00
parent 6be7840ce6
commit c82d309d07
3 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -616,7 +616,7 @@ class textlib {
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class collatorlib {
/** @const compare items as strings, equivalent to Collator::SORT_REGULAR */
/** @const compare items using general PHP comparison, equivalent to Collator::SORT_REGULAR, this may bot be locale aware! */
const SORT_REGULAR = 0;
/** @const compare items as strings, equivalent to Collator::SORT_STRING */