SQLFORM represents a reference field as a multiply-selected drop-down list, this presents two problems:
(1). If the referenced table has 10,000 entries, then they will be shown. It's inefficient. But it's somewhat unavoidable, given what it is.
(2). The other problem is more serious. A multiply-selected drop-down list is not really a list, but rather a set. It seems there is no way specify the order of the list and select multiple items.
Ideally, the way SQLFORM represents list:reference should be the same as list:integer, with an added validation making sure that all items are in the database.
Does anyone know how to solve (2)?