Поправил типы

This commit is contained in:
Фёдор Подлеснов 2018-02-09 12:02:35 +03:00
parent f3adc4550d
commit db7b5c7d25
3 changed files with 4 additions and 3 deletions

View file

@ -358,7 +358,7 @@ class Functions {
* @param $key Имя ключа по значению которого будет идти сравнение
* @return Отсортированный массив
*/
static function sortOn($array, $key, $fn = '__cmp') {
static function sortOn($array, $key, $fn = 'Functions::__cmp') {
usort ($array, Functions::rcurry($fn, $key));
//usort ($array, create_function ('$x,$y', 'return __cmp ($x, $y, "'.$key.'");'));
return $array;