MDL-70897 various: uasort callback can not return bool

Co-authored-by: Ruslan Kabalin <ruslan.kabalin@gmail.com>
This commit is contained in:
Marina Glancy 2021-02-15 15:15:35 +01:00 committed by Ruslan Kabalin
parent 9600becce3
commit 79949dc508
5 changed files with 12 additions and 11 deletions

View file

@ -480,7 +480,7 @@ class manager {
// Sort categories by order.
uasort($categories, function($category1, $category2) {
return $category1->get_order() > $category2->get_order();
return $category1->get_order() <=> $category2->get_order();
});
static::$searchareacategories = $categories;