Massimo,

> you can pass orderby to IS_IN_DB

To which IS_IN_DB do I have to pass the orderby to get the same
result. The resultset reads like:


1     1   a
1     4   d
1     7   9
None  2   b
None  3   c
None  5   e
None  6   f


The orderby: orderby=~db.teachers_subjects.teacher_id|db.subjects.id
first sorts it in reverse order by db.teachers_subjects.teacher_id and
then by db.subjects.id, to meet Tiago's requirement:

When creating a new evaluation for teacher t1, the items on the
subject dropdown should appear in the following order:

a      //related
d      //related
g      //related
b
c
e
f



Annet.

Reply via email to