Skip to content

Commit cc3b09e

Browse files
committed
Tracy\Panel: table is sortable
1 parent f4d8264 commit cc3b09e

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
@@ -129,7 +129,7 @@ public function getPanel(): ?string
129129
[$connection->onEvent, \dibi::$numOfQueries, \dibi::$totalTime] = $backup;
130130
}
131131

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

0 commit comments

Comments
 (0)