From 746d311fe3c507d8b338b6ddd173532cdf4e50ed Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Sun, 31 Oct 2021 08:34:31 +0000 Subject: [PATCH] [FIX] ensure db documents are sorted correctly --- src/GroupStats.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GroupStats.js b/src/GroupStats.js index 3fed8d2..42ad004 100644 --- a/src/GroupStats.js +++ b/src/GroupStats.js @@ -104,6 +104,7 @@ export default withRouter(class GroupStats extends Component { if (groupSetIds.length > 0) await this.state.db.collection("incorrect_answers") .where("groups", "array-contains", this.props.match.params.groupId) .orderBy("term", "asc") + .orderBy("definition", "asc") .get() .then((querySnapshot) => { let incorrectAnswers = [];