Found the answer: orderby is supported.

IS_IN_DB(dbset, field, orderby='mytable.myfield', ...)

On Apr 24, 8:31 am, niknok <nikolai...@gmail.com> wrote:
> Thanks. But I guess I did not explain myself properly.
>
> I would like the list to display the titles, but sorted by say the ID
> field, or another field.
>
> Right now, I do it like label='%(id)s%(title)s', but I'd like to
> display it without the ID. I hope this makes sense.
>
> On Apr 23, 10:30 pm, DenesL <denes1...@yahoo.ca> wrote:
>
>
>
>
>
>
>
> > Yes, use the label parameter e.g.
>
> > IS_IN_DB(dbset, field, label='%(title)s', ...)
>
> > On Apr 23, 8:59 am, niknok <nikolai...@gmail.com> wrote:
>
> > > Is there a way to sort the list generated by IS_IN_DB by another field
> > > other than the one formatted for display?
>
> > > Thanks.
>
> > > /r
> > > Nik

Reply via email to