From 44d9123bc4dccbfa0fa38aa47c987fec63ef672c Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Mon, 18 Sep 2017 00:27:39 +0900 Subject: sory by url --- src/background/histories.js | 1 + 1 file changed, 1 insertion(+) (limited to 'src/background/histories.js') diff --git a/src/background/histories.js b/src/background/histories.js index 42f7fd1..d70cf57 100644 --- a/src/background/histories.js +++ b/src/background/histories.js @@ -60,6 +60,7 @@ const getCompletions = (keyword) => { .sort((x, y) => x[0].visitCount < y[0].visitCount) .slice(0, 10) .map(item => item[0]) + .sort((x, y) => x.url > y.url) )[0]; }); }; -- cgit v1.2.3