From 67e459f0c780dea7abc6fd8be138b01b9fa2996e Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Mon, 5 Mar 2018 17:55:12 +0200 Subject: [PATCH] chore: do not prioritize tag elements over operations --- src/components/SearchBox/SearchBox.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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 (