ie. a user can choose to have items sorted by oldest to newest or newest to oldest
Not off the top of my head, but you can add a text component and a new screen to do that.
Another way to do this is to actually have multiple lists on your screen – one for each sort method/direction. Then you could have a dropdown where the users pick their sort and the Visibility of the lists is based on the value of that dropdown.
you can change visibility via user input?
I haven’t seen an easy option to change visibility via user input, but thinking out loud here, it’s something you should be able to do with filtering and updating a show/hide field in your database.