Skip to content

Commit

Permalink
Tracy\Panel: table is sortable
Browse files Browse the repository at this point in the history
  • Loading branch information
dg committed Oct 15, 2020
1 parent f4d8264 commit cc3b09e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Dibi/Bridges/Tracy/Panel.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function getPanel(): ?string
[$connection->onEvent, \dibi::$numOfQueries, \dibi::$totalTime] = $backup;
}

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

0 comments on commit cc3b09e

Please sign in to comment.