binarylogic / searchlogic

Searchlogic provides object based searching, common named scopes, and other useful tools.
http://rdoc.info/projects/binarylogic/searchlogic
MIT License
1.39k stars 133 forks source link

ascend and descend #5

Closed punund closed 15 years ago

punund commented 15 years ago

s = Person.search s.ascend_by_name true s.all | Andy | Bob | Charlie . . . . . s.descend_by_name true s.all | Andy | Bob | Charlie . . . . . s.ascend_by_name false s.all | Zita | Yvonne | Xaviere . . . . .

otaviofcs commented 15 years ago

why you need to use true or false? Just use ascend_by_name or descend_by_name and you will be fine.

ghost commented 15 years ago

Im not sure what the question is.