mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Fix: Sort tests numerically in UI
This commit is contained in:
@@ -92,7 +92,7 @@
|
|||||||
|
|
||||||
const testsRes=await fetch('https://api.github.com/repos/multipleof4/lynchmark/contents/tests');
|
const testsRes=await fetch('https://api.github.com/repos/multipleof4/lynchmark/contents/tests');
|
||||||
const testsData=await testsRes.json();
|
const testsData=await testsRes.json();
|
||||||
const tests=testsData.filter(d=>d.type==='dir').map(d=>d.name).sort();
|
const tests=testsData.filter(d=>d.type==='dir').map(d=>d.name).sort((a,b)=>parseInt(a)-parseInt(b));
|
||||||
|
|
||||||
for(const model of models){
|
for(const model of models){
|
||||||
const sModel=model.replace(/[\/:]/g,'_');
|
const sModel=model.replace(/[\/:]/g,'_');
|
||||||
|
|||||||
Reference in New Issue
Block a user