Update Tools.php

This commit is contained in:
wdammak
2020-10-26 10:38:35 +01:00
committed by GitHub
parent 3d09cd7b30
commit 829176f269

View File

@@ -3733,7 +3733,7 @@ exit;
return;
}
$sort_function = create_function('$a, $b', "return \$b['$column'] > \$a['$column'] ? 1 : -1;");
$sort_function = function ($a, $b) use ($column) { return $b[$column] > $a[$column] ? 1 : -1; };
uasort($rows, $sort_function);