-
|
Hello. In my current application built with NextJs, i am using Nuqs, I have a specific request to display search params in alphabetically order. is there a way to do it with Nuqs? Thanks |
Beta Was this translation helpful? Give feedback.
Answered by
franky47
Sep 1, 2025
Replies: 2 comments 1 reply
-
|
Not currently, no. It's been discussed previously: #634 #777 |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
This is available in Complete docs (with demo): https://nuqs-next.47ng.com/docs/options#processing-urlsearchparams <NuqsAdapter
processUrlSearchParams={(search) => {
const entries = Array.from(search.entries())
entries.sort(([a], [b]) => a.localeCompare(b))
return new URLSearchParams(entries)
}}
>
{children}
</NuqsAdapter> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
franky47
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is available in
[email protected], feel free to try it:Complete docs (with demo): https://nuqs-next.47ng.com/docs/options#processing-urlsearchparams