Skip to content
Discussion options

You must be logged in to vote

This is available in [email protected], feel free to try it:

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>

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@franky47
Comment options

Comment options

You must be logged in to vote
1 reply
@hugotiger
Comment options

Answer selected by franky47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
2 participants