Skip to content

Commit

Permalink
chore(docs): remove obsolete hit sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
almostSouji committed Jul 21, 2024
1 parent 224086c commit 233d3f0
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/functions/docs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,12 +68,6 @@ export async function queryDocs(query: string, pack: string, version: string) {
});

const docsResult = (await searchRes.json()) as any;
docsResult.hits.sort((one: any, other: any) => {
const oneScore = one.kind === 'Class' ? 1 : 0;
const otherScore = other.kind === 'Class' ? 1 : 0;

return otherScore - oneScore;
});

return {
...docsResult,
Expand Down

0 comments on commit 233d3f0

Please sign in to comment.