diff --git a/shiftcounter.php b/shiftcounter.php index fc85718..7d179d0 100644 --- a/shiftcounter.php +++ b/shiftcounter.php @@ -31,7 +31,7 @@ for($i = 0; $i < 2; $i++) { } } -usort($worklists, function($a, $b) { +uasort($worklists, function($a, $b) { if ($a[1] == $b[1]) return; return $a[1] > $b[1] ? -1 : 1; });