mirror of
https://github.com/godotengine/godot-benchmarks.git
synced 2025-12-31 09:49:13 +03:00
Fix sorting on Chromium-based browsers (#107)
This commit is contained in:
@@ -15,9 +15,6 @@
|
||||
<div style="display: flex; align-items: center; margin-bottom: 1em;">
|
||||
<div style="flex-grow: 3;">
|
||||
Normalized (percentage of the average time). <strong>Lower is better on all graphs.</strong>
|
||||
<p>
|
||||
<strong>⚠️ There are <a href="https://github.com/godotengine/godot-benchmarks/issues/87">known issues</a> with graph sorting in Chromium-based browsers. Please use Firefox for now. ⚠️</strong>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
<div style="display: grid; grid-template-columns: 50% 50%; gap: 1em;">
|
||||
|
||||
@@ -17,7 +17,7 @@ function displayGraph(targetDivID, graphID, type = "full", filter = "") {
|
||||
|
||||
// Include benchmark data JSON to generate graphs.
|
||||
const allBenchmarks = Database.benchmarks.sort(
|
||||
(a, b) => `${a.date}.${a.commit}` > `${b.date}.${b.commit}`,
|
||||
(a, b) => `${a.date}.${a.commit}` > `${b.date}.${b.commit}` ? 1 : -1,
|
||||
);
|
||||
const graph = Database.graphs.find((g) => g.id == graphID);
|
||||
if (!graph) {
|
||||
|
||||
Reference in New Issue
Block a user