feat(discover): randomly sort results
This commit is contained in:
parent
45b51ab156
commit
88be3a045b
1 changed files with 1 additions and 0 deletions
|
|
@ -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(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue