Skip to content

Commit f1b5077

Browse files
committed
Tracy\Panel: table is sortable
1 parent 889f2a3 commit f1b5077

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Dibi/Bridges/Tracy/Panel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ public function getPanel(): ?string
131131
[$connection->onEvent, \dibi::$numOfQueries, \dibi::$totalTime] = $backup;
132132
}
133133

134-
$s .= '<tr><td>' . number_format($event->time * 1000, 3, '.', '');
134+
$s .= '<tr><td data-order="' . $event->time . '">' . number_format($event->time * 1000, 3, '.', '');
135135
if ($explain) {
136136
static $counter;
137137
$counter++;
@@ -159,7 +159,7 @@ public function getPanel(): ?string
159159
. ($totalTime === null ? '' : ', time: ' . number_format($totalTime * 1000, 1, '.', '') . ' ms') . ', '
160160
. htmlspecialchars($this->getConnectionName($singleConnection)) . '</h1>
161161
<div class="tracy-inner tracy-DibiProfiler">
162-
<table>
162+
<table class="tracy-sortable">
163163
<tr><th>Time&nbsp;ms</th><th>SQL Statement</th><th>Rows</th>' . (!$singleConnection ? '<th>Connection</th>' : '') . '</tr>
164164
' . $s . '
165165
</table>

0 commit comments

Comments
 (0)