Skip to content
Snippets Groups Projects
Commit 4a06fabe authored by Henrik Askjer's avatar Henrik Askjer
Browse files

Remove sorting

parent 2489184a
No related branches found
No related tags found
No related merge requests found
......@@ -205,7 +205,7 @@ export default {
if(event.articles){
let source = '/' + this.lang + '/w/' + event.word
this.$router.push(source)
this.search_results = event.articles.sort(compare_by_hgno(decodeURIComponent(event.word))).map(a => Object.assign(a, {source: source}))
this.search_results = event.articles.map(a => Object.assign(a, {source: source}))
this.article = null
this.error = null
history.replaceState({article: this.article, search_results: this.search_results, lang: this.lang, error: this.error}, '')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment