mirror of
https://github.com/ItzCrazyKns/Perplexica.git
synced 2025-08-06 07:48:42 +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)
|
.map((result) => result)
|
||||||
.flat()
|
.flat()
|
||||||
|
.sort(() => Math.random() - 0.5);
|
||||||
} else {
|
} else {
|
||||||
data = (
|
data = (
|
||||||
await searchSearxng(
|
await searchSearxng(
|
||||||
|
Reference in New Issue
Block a user