Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/algsinfo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
var selCases = [];

var algsOrder = [];

var algsGroups = {
"All Edges Oriented Correctly" : [26, 27, 21, 22, 24, 25, 23],
"T-Shapes" : [33, 45],
Expand All @@ -17,6 +19,10 @@ var algsGroups = {
"No Edges Flipped Correctly" : [1,2,3,4,18,19,17,20],
};

for (i in algsGroups) {
algsOrder = algsOrder.concat(algsGroups[i]);
}

var algsInfo = {
1: {
"name": "Runway",
Expand Down
5 changes: 4 additions & 1 deletion scripts/timer.js
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,10 @@ function displayStats()
}

var keys = Object.keys(resultsByCase);
keys.sort();
keys.sort(function(a, b) {
//return parseInt(a) - parseInt(b); // old simple fix numerical order
return algsOrder.indexOf(a) - algsOrder.indexOf(b); // new algsinfo ordering
});

var s = "";
// allocate them inside times span
Expand Down