- ordering fixed
This commit is contained in:
parent
bb61000bea
commit
afeda936c1
@ -79,7 +79,7 @@ function list_corresponding_results(gameid) {
|
|||||||
if (n === 0) { // don't continue with processing an empty array
|
if (n === 0) { // don't continue with processing an empty array
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
results.sort((a,b) => {return Number(b["testid"]) - Number(a["testid"])}); // sort records by ID
|
results.sort((a,b) => {return Number(b["_id"]) - Number(a["_id"])}); // sort records by ID
|
||||||
results.forEach((record) => {
|
results.forEach((record) => {
|
||||||
let test_summary_record = document.createElement("section");
|
let test_summary_record = document.createElement("section");
|
||||||
test_summary_record.classList.add("test-summary-record");
|
test_summary_record.classList.add("test-summary-record");
|
||||||
|
@ -224,7 +224,7 @@ function list_results_by_game(game) {
|
|||||||
let n = results.length;
|
let n = results.length;
|
||||||
|
|
||||||
results.sort((a, b) => {
|
results.sort((a, b) => {
|
||||||
return Number(b["testid"]) - Number(a["testid"])
|
return Number(b["_id"]) - Number(a["_id"])
|
||||||
}); // sort records by ID
|
}); // sort records by ID
|
||||||
|
|
||||||
let results_by_nickname = {};
|
let results_by_nickname = {};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user