sory by url
This commit is contained in:
parent
5d13818fb4
commit
44d9123bc4
1 changed files with 1 additions and 0 deletions
|
@ -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];
|
||||
});
|
||||
};
|
||||
|
|
Reference in a new issue