How do I let users choose the way they want to sort their reports through a form dynamically?