mirror of
https://github.com/maximebf/php-debugbar.git
synced 2025-01-16 21:08:34 +01:00
Added sorting for RedisStorage (#354)
This commit is contained in:
parent
e23a98f2d6
commit
82a53b6ed8
@ -59,6 +59,11 @@ class RedisStorage implements StorageInterface
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
usort($results, function ($a, $b) {
|
||||
return $a['utime'] < $b['utime'];
|
||||
});
|
||||
|
||||
return array_slice($results, $offset, $max);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user