[Catalyst] order_by
Sébastien Wagener
sebastien.wagener at gmail.com
Fri Dec 15 09:42:57 GMT 2006
On Thu, 2006-12-14 at 18:51 -0800, Andrew Peebles wrote:
> Will Smith wrote:
> I think you want:
>
> $c->stash->{book} = [$c->model('myappDB::Book')->search( {}, {order_by
> => 'title} )];
The DBIx::Class::ResultSet pod recommends using undef instead of {}, if
I remember right.
>
> That's how I remember doing it ...
> >
> > _______________________________________________
> > List: Catalyst at lists.rawmode.org
> > Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> > Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> > Dev site: http://dev.catalyst.perl.org/
> >
>
> _______________________________________________
> List: Catalyst at lists.rawmode.org
> Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
> Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/
> Dev site: http://dev.catalyst.perl.org/
More information about the Catalyst
mailing list