Remove redundant sort
This commit is contained in:
1 parent
7e513dbcc2
commit
a338dc50c0
1 file changed
+1
-3
@@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user