From 357796b491a4fb75b850c054010865250d277a50 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Sun, 31 Oct 2021 08:35:08 +0000 Subject: [PATCH] [FIX] ensure db documents are sorted correctly --- src/MistakesHistory.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/MistakesHistory.js b/src/MistakesHistory.js index 79ea246..ba03b34 100644 --- a/src/MistakesHistory.js +++ b/src/MistakesHistory.js @@ -67,6 +67,7 @@ export default class IncorrectHistory extends Component { this.state.db.collection("incorrect_answers") .where("uid", "==", this.state.user.uid) .orderBy("term", "asc") + .orderBy("definition", "asc") .get() .then(async (querySnapshot) => { let incorrectAnswers = [];