Sort By add to URL

How can I add the sort by to the URL via uiState?


I believe this guide can help you:

The guide is fairly dense, but your use case should be simpler: the idea is mainly to add a sortBy parameter in the routing.router function based on the uiState.sortBy.


I did but when I go to that URL it reverses to the default index…which is wrong I need it going to the other index

Hi mgaytan. To help us troubleshoot this, please provide a code snippet. Thank you!