|
How to sort the items in an options list |
If you want all instances of a class to be sorted differently by default in item tables as well as in options lists, add a method 'getLabelSort' to the class and have it return a n instance of PntSqlSort ().
Options lists are retrieved through the property options, which are part of the peanuts component model. You can define an options getter method that sorts the options or instructs the database to do it for him. See How to define options for a property for how to define an options getter method.
Custom option lists may be created by custom pages or page parts using an instance of . How to sort these custom options list depends on the code that creates them. |
|