From c53138ce1c425608dce8db4ed8f9b8a60e3973f1 Mon Sep 17 00:00:00 2001 From: lukew3 Date: Tue, 25 May 2021 16:38:18 -0400 Subject: [PATCH] reversed results list --- backend/mongo-todo.md | 2 ++ src/js/account.js | 1 + 2 files changed, 3 insertions(+) diff --git a/backend/mongo-todo.md b/backend/mongo-todo.md index 3d90f8a6c..d7f9e114e 100644 --- a/backend/mongo-todo.md +++ b/backend/mongo-todo.md @@ -20,6 +20,8 @@ - Tests started and completed doesn't increment when quitting a running test - Doesn't work as I expected in live version either, no issue - Create configSchema +- Figure out if filteredResults.reverse(); in account.js is going to cause efficiency issues + - Could reverse processing of results, but that would add more complexity to code ## After beta is ready diff --git a/src/js/account.js b/src/js/account.js index 71519053a..dc342648b 100644 --- a/src/js/account.js +++ b/src/js/account.js @@ -580,6 +580,7 @@ export function update() { totalWpm += result.wpm; }); + filteredResults.reverse(); loadMoreLines(); ////////