[FIX] ensure db documents are sorted correctly

This commit is contained in:
2021-10-31 08:35:08 +00:00
committed by GitHub
parent 746d311fe3
commit 357796b491

View File

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