[FIX] ensure db documents are sorted correctly
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user