updates search.rb to take a ordered_by param and sort based on that param