From cf23df94c9d40a3e65550f8468a7e0422364290f Mon Sep 17 00:00:00 2001 From: Paul Date: Sun, 12 Dec 2021 22:19:49 -0500 Subject: [PATCH] Remove redundant sort --- components/_fuzzy.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/components/_fuzzy.tsx b/components/_fuzzy.tsx index 080ccee..7172651 100644 --- a/components/_fuzzy.tsx +++ b/components/_fuzzy.tsx @@ -32,8 +32,6 @@ export default class Fuzzy { this.pages = obj.pages this.maxResults = obj.maxResults || this.pages.length; - - this.pages.sort((x, y) => { return ('' + x.title).localeCompare(y.title) }); } searchKeyUpListener(e: ReactKeyboardEvent) { @@ -104,4 +102,4 @@ export default class Fuzzy { return null; } -} \ No newline at end of file +}