mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-08-03 06:18:44 +00:00
feat(discover): randomly sort results
This commit is contained in:
@ -60,6 +60,7 @@ export const GET = async (req: Request) => {
|
||||
)
|
||||
.map((result) => result)
|
||||
.flat()
|
||||
.sort(() => Math.random() - 0.5);
|
||||
} else {
|
||||
data = (
|
||||
await searchSearxng(
|
||||
|
Reference in New Issue
Block a user