Sorting Index

Hi, I have a question about sorting a RESTful application.

On my index page there are several types of videos I would like to sort, ranging from new, to top rated and more, and beyond that I would like the user to, for example, sort the ratings from least to greatest and vice versa, or from most viewed to least viewed (and vice versa). To do so I made up two params in my link_to e.g. :kind => "new", :sort => "bottom" for whenever the user clicks these two scenarios.

In the controller I have if statements set up to handle each one with call to methods in the model depending on the scenario. I can't help but just feel I'm going about this the wrong way.

Does this make sense what I'm trying to do and if so am I going about it the right way.