Remove redundant sort

This commit is contained in:
Paul W. 2021-12-12 22:19:49 -05:00 committed by GitHub
parent 52882a8b39
commit cf23df94c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -32,8 +32,6 @@ export default class Fuzzy {
this.pages = obj.pages this.pages = obj.pages
this.maxResults = obj.maxResults || this.pages.length; this.maxResults = obj.maxResults || this.pages.length;
this.pages.sort((x, y) => { return ('' + x.title).localeCompare(y.title) });
} }
searchKeyUpListener(e: ReactKeyboardEvent) { searchKeyUpListener(e: ReactKeyboardEvent) {
@ -104,4 +102,4 @@ export default class Fuzzy {
return null; return null;
} }
} }