Skip to content

Is there a straightforward way to sort a useQuery query result? #1169

Answered by PabloSzx
tonyketcham asked this question in Q&A
Discussion options

You must be logged in to vote

Array .sort mutates the array trying to be sorted, so that's the first issue you are going to encounter, you can't sort the proxies returned by gqty, you can create another array and then sort that array, but not directly the one returned by the gqty client

Replies: 1 comment 1 reply

Comment options

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

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