[Catalyst] order_by

Will Smith willbelair at yahoo.com
Fri Dec 15 02:33:04 GMT 2006


Hi,
 it used to worked with the option order_by with cdbi class, but in DBIC class, I could not get it:
 $c->stash->{book} = [$c->model('myappDB::Book')->all, {order_by => 'title}];
 
 Could some one please show me how to do this.
 
 Thank you.
 
 
---------------------------------
Any questions?  Get answers on any topic at Yahoo! Answers. Try it now.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/catalyst/attachments/20061214/89a42521/attachment.htm


More information about the Catalyst mailing list