I think you can manually specify the IS_IN_DB() validator for the field and
add orderby=db.mytable.id (if you do that, you'll also have to manually
specify the "represent" attribute of the field).
Anthony
On Saturday, April 20, 2013 5:41:09 PM UTC-4, James Burke wrote:
>
> Hi,
>
> In the edit/add page for smartgrid, I have a reference field displaying
> Months which are sorted alphabetically (by default). How can I sort them by
> id instead?
>
> Cheers,
>
> -James
>
--
---
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.