1👍
✅
When you render your template you can pass to the context (in your case data
) object sort
parameter and then in the template you can use url to show which view to invoke.
Source:stackexchange.com