mirror of
https://github.com/Roslund/sthlm-mesh.git
synced 2026-08-06 17:02:56 +02:00
deploy: 8df3b345a7
This commit is contained in:
@@ -35,8 +35,8 @@ async function firmwareVersionGraph() {
|
||||
|
||||
console.log(statsArray)
|
||||
|
||||
// Sort by count ascending
|
||||
const sorted = statsArray.sort((a, b) => a.count - b.count);
|
||||
// Sort by count descending
|
||||
const sorted = statsArray.sort((a, b) => b.count - a.count);
|
||||
|
||||
const labels = sorted.map(entry => entry.version);
|
||||
const counts = sorted.map(entry => entry.count);
|
||||
|
||||
Reference in New Issue
Block a user