aboutsummaryrefslogtreecommitdiff
path: root/src/background/histories.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-09-18 00:27:39 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-09-18 00:27:39 +0900
commit44d9123bc4dccbfa0fa38aa47c987fec63ef672c (patch)
treede010515c4f4a2d8520320a1ac17ffe045d78c63 /src/background/histories.js
parent5d13818fb4128a2b3a511da4929acb26e4f1e872 (diff)
sory by url
Diffstat (limited to 'src/background/histories.js')
-rw-r--r--src/background/histories.js1
1 files changed, 1 insertions, 0 deletions
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];
});
};