title: Grails: Changing datasets from the view
body: <p>I have a data-driven page that's pulling information from a database. As it stands, the page sorts the data by a field called "type" in the database. But I also want the ability for the user to sort by "date" without needing to reload the page.</p>
  
  <p>Both datasets work fine on their own, I just don't know how to switch between them with just a hyperlink.</p>
  
  <p>I would be fine using a variable in the address bar (ex: <a href="http://example.com?sort=year" rel="nofollow">http://example.com?sort=year</a>), but it wouldn't be preferential. </p>