From 233d3f0d388cd774769f444987ebbb07aad94600 Mon Sep 17 00:00:00 2001 From: almostSouji Date: Sun, 21 Jul 2024 13:37:11 +0200 Subject: [PATCH] chore(docs): remove obsolete hit sorting --- src/functions/docs.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/functions/docs.ts b/src/functions/docs.ts index 07b8993..7dd88cc 100644 --- a/src/functions/docs.ts +++ b/src/functions/docs.ts @@ -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,