[Catalyst] order_by not sorting
Lars Balker Rasmussen
lars at balker.dk
Sat Sep 2 17:26:22 CEST 2006
On Sat, Sep 02, 2006 at 10:36:50AM -0400, J Cook wrote:
> $c->form->field(name => 'country',
> options => { map { $_->name => $_->value }
> $c->model('MyAppDB::Lookup')->search(
> { lookup_key => 'Country' },
> { order_by => 'sort' }),
> }
> );
>
> The sort field is an integer type. Why isn't this ordering it?
Because you're mapping the nice sorted list into a hash.
--
Lars Balker Rasmussen Consult::Perl
More information about the Catalyst
mailing list