Not long ago, Doran L. Barton proclaimed...
> This is really a DBIC question... but it's like this:
>
> my @books = $c->model('My::AppDB::Book')->search(
> { num_pages => { '>=', $pages }},
> { order_by => 'title'});
>
> Basically, the order_by is the second argument to the search() function.
Woops! I should have been more specific. The order_by key-value pair is an
*option* - one of several - that can be enclosed in a hash of options that
can be passed as the second parameter to the search() method.
Sorry I wasn't as clear the first go around.
--
[EMAIL PROTECTED] is Doran L. Barton, president/CTO, Iodynamics LLC
Iodynamics: IT and Web services by Linux/Open Source specialists
"Dog for sale: eats anything and is fond of children."
-- Classified ad in newspaper
pgpqMbhIuqb8O.pgp
Description: PGP signature
_______________________________________________ List: [email protected] Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/[email protected]/ Dev site: http://dev.catalyst.perl.org/
