Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
The PropertySelect control currently doesn't let you specify the order the options list so it's in the order the cayenne query returned which is ordered by primary key.
Most use cases i have of the PropertySelect control (and assume other people as well) would like it to be ordered alphabetically ASC by whatever you pass in as the label (setOptionLabel method). So maybe modify the default behaviour? Or add a flag to set it to do this.
Also there maybe some use cases where you want to order by something different so maybe add an optional setOrdering method that passes in an org.objectstyle.cayenne.query.Ordering object to add to the PropertySelect query.