1
0
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:
Dmytro Ilnicki 2017-08-31 12:05:54 +03:00 committed by Barry vd. Heuvel
parent e23a98f2d6
commit 82a53b6ed8

View File

@ -59,6 +59,11 @@ class RedisStorage implements StorageInterface
}
}
}
usort($results, function ($a, $b) {
return $a['utime'] < $b['utime'];
});
return array_slice($results, $offset, $max);
}