Skip to content
Snippets Groups Projects
Commit ffaa716e authored by Ole Voldsæter's avatar Ole Voldsæter
Browse files

sorterer dropdown på lengde

parent 331e4768
No related branches found
No related tags found
No related merge requests found
......@@ -66,7 +66,7 @@ export default {
}
}
}).then(function(response) {
let hits = response.data.suggest.suggest[0].options
let hits = response.data.suggest.suggest[0].options.sort((o1, o2) => o1.text.length - o2.text.length)
if(q.length) hits = hits.concat({q: q})
resolve(hits)
})
......
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