diff --git a/src/components/SearchBox/SearchBox.tsx b/src/components/SearchBox/SearchBox.tsx index eaa654f3..cebbdb5e 100644 --- a/src/components/SearchBox/SearchBox.tsx +++ b/src/components/SearchBox/SearchBox.tsx @@ -88,10 +88,8 @@ export class SearchBox extends React.PureComponent - a.item.depth > b.item.depth ? 1 : a.item.depth < b.item.depth ? -1 : b.score - a.score, - ); + + results.sort((a, b) => b.score - a.score); return (