Skip to content

Commit a3a99d8

Browse files
committed
ConnectionPanel: added data-order to be sortable by time
1 parent a5d9347 commit a3a99d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Bridges/DatabaseTracy/templates/ConnectionPanel.panel.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use Tracy\Helpers;
2929
[$connection, $sql, $params, $source, $time, $rows, $error, $command, $explain] = $query;
3030
?>
3131
<tr>
32-
<td style="background:rgba(255, 95, 23, <?= sprintf('%0.3f', log($time * 1000 + 1, 10) * $performanceScale) ?>)">
32+
<td style="background:rgba(255, 95, 23, <?= sprintf('%0.3f', log($time * 1000 + 1, 10) * $performanceScale) ?>)" data-order="<?= (float) $time ?>">
3333
<?php if ($error): ?>
3434
<span title="<?= Helpers::escapeHtml($error) ?>">ERROR</span>
3535
<?php elseif ($time !== null): echo sprintf('%0.3f', $time * 1000); endif ?>

0 commit comments

Comments
 (0)