[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")
|
if (groupSetIds.length > 0) await this.state.db.collection("incorrect_answers")
|
||||||
.where("groups", "array-contains", this.props.match.params.groupId)
|
.where("groups", "array-contains", this.props.match.params.groupId)
|
||||||
.orderBy("term", "asc")
|
.orderBy("term", "asc")
|
||||||
|
.orderBy("definition", "asc")
|
||||||
.get()
|
.get()
|
||||||
.then((querySnapshot) => {
|
.then((querySnapshot) => {
|
||||||
let incorrectAnswers = [];
|
let incorrectAnswers = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user