Hi,
I have the following snippet that accesses a Lookup table that will
populate a drop-down list. I'm using the Formbuilder plugin and the
table lookup has 4 fields - lookup_key, name, value, and sort(its a
legacy table). The following fills in the select field but does not sort
it correctly:
$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?
Justin
_______________________________________________
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/