Skip to content

Commit 88be3a0

Browse files
committed
feat(discover): randomly sort results
1 parent 45b51ab commit 88be3a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/app/api/discover/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ export const GET = async (req: Request) => {
6060
)
6161
.map((result) => result)
6262
.flat()
63+
.sort(() => Math.random() - 0.5);
6364
} else {
6465
data = (
6566
await searchSearxng(

0 commit comments

Comments
 (0)