title: Best way to implement sort asc or desc in rails
body: <p>Is there an elegant way to implement a sort asc and desc actions in the views/controller in rails?</p>
  
  <p>What I have is the common index.html.erb view that lists all of my data of certain model and I want to add some small buttons (or make the title clickable) to sort the list ascending or descending of that column. I am wondering if there is an elegant and efficient way to do it or should I just add a new controller for every column (or button) I want this action to happen.</p>