mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
Fix sort (#527)
This commit is contained in:
parent
3ade312b58
commit
bfa8941060
@ -62,7 +62,7 @@ class FileStorage implements StorageInterface
|
||||
|
||||
//Sort the files, newest first
|
||||
usort($files, function ($a, $b) {
|
||||
return $a['time'] <=> $b['time'];
|
||||
return $a['time'] < $b['time'] ? 1 : -1;
|
||||
});
|
||||
|
||||
//Load the metadata and filter the results.
|
||||
|
Loading…
x
Reference in New Issue
Block a user