mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-07-25 10:41:55 +02:00
Fix sort (#527)
This commit is contained in:
@@ -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.
|
||||
|
Reference in New Issue
Block a user