I am following from here: https://learn.getgrav.org/content/collections
When you define a page you can say the default sort order. But is it possible to allow the user to sort this list from the front end? e.g., I have a table of data and I want to let the user sort on any field in ascending or descending order?
I do not see a built in way to do this, so I looked into doing this with twig. But I don't see how you can grab $_GET parameters from twig.
Ideally I would like to select the field and sort order. How can I accomplish this with Grav, or does Grav not support the ability to send sort instructions? Javascript sorting is not desired because of pagination needs (I also can't figure out how to get pagination to work, is it a built in option in the docs but requires a plugin to be installed?)