Skip to content

Commit

Permalink
Search Sort by Chapter and Verse
Browse files Browse the repository at this point in the history
  • Loading branch information
ejabu committed Jan 31, 2017
1 parent 4a1ee62 commit f06942f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/components/Submenu/SearchBox/SearchBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class SearchBox extends Component {
}
else{
var neQuery = QueryParser(event.target.value)
quranDB.find(neQuery, this.doSomething);
quranDB.find(neQuery).sort({c:1,v:1}).exec(this.doSomething)
}
}
}
Expand All @@ -73,7 +73,8 @@ export default class SearchBox extends Component {
}
else{
var neQuery = QueryParser(this.state.search)
quranDB.find(neQuery, this.doSomething);
quranDB.find(neQuery).sort({c:1,v:1}).exec(this.doSomething)

}
}
render() {
Expand Down

0 comments on commit f06942f

Please sign in to comment.