Fix history completion to show most frequent results first.

jh-changes
Kostyantyn Leschenko 7 years ago
parent 507c5b4f78
commit 05c7a64b6d
  1. 1
      src/background/histories.js

@ -76,7 +76,6 @@ const getCompletions = (keyword) => {
.sort((x, y) => x[0].visitCount < y[0].visitCount) .sort((x, y) => x[0].visitCount < y[0].visitCount)
.slice(0, 10) .slice(0, 10)
.map(item => item[0]) .map(item => item[0])
.sort((x, y) => x.url > y.url)
)[0]; )[0];
}); });
}; };