sory by url

jh-changes
Shin'ya Ueoka 7 years ago
parent 5d13818fb4
commit 44d9123bc4
  1. 1
      src/background/histories.js

@ -60,6 +60,7 @@ 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];
}); });
}; };