Skip to content

Instantly share code, notes, and snippets.

@kazpsp
Created Oct 22, 2012
Embed
What would you like to do?
Model
scope :sort_by_client_name_asc, order('client_name ASC')
scope :sort_by_client_name_desc, order('client_name DESC')
View
sort_link @search, :sort_by_custom_name_asc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment