diff --git a/GameEngine/Multisort.php b/GameEngine/Multisort.php index 97b03d19..8935c470 100755 --- a/GameEngine/Multisort.php +++ b/GameEngine/Multisort.php @@ -43,8 +43,10 @@ class multiSort { $t = 'strnatcmp($a[' . $key . '], $b[' . $key . '])'; break; } - usort($array, create_function('$a, $b', 'return ' . ($order ? '' : '-') . '(' . $t . ');')); + usort($array, function($a, $b) use ($order, $t) { + return ($order ? '' : '-') . ($t); + }); } return $array; }