[FIX] ensure db documents are sorted correctly

This commit is contained in:
2021-10-31 08:34:31 +00:00
committed by GitHub
parent ed57b735c2
commit 746d311fe3

View File

@@ -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 = [];