We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f0fa347 commit bd3892dCopy full SHA for bd3892d
src/Models/Driver.php
@@ -123,6 +123,6 @@ protected function accumulateRecords(array $filter = []): void
123
124
protected function sortRecords(): void
125
{
126
- usort($this->records, fn($a, $b): int => (int) ($a['datetime']->format('U') > $b['datetime']->format('U')));
+ usort($this->records, fn(LogRecord $a, LogRecord $b): int => $a['datetime']->format('U') - $b['datetime']->format('U'));
127
}
128
0 commit comments