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

_______________________________________________
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/

Reply via email to