ListGroupSortedclass | lister.t[2047] |
Superclass Tree | Subclass Tree | Global Objects | Property Summary | Method Summary | Property Details | Method Details |
class
ListGroupSorted : ListGroup
ListGroupSorted
ListGroup
object
ListGroupSorted
ListGroupParen
ListGroupPrefixSuffix
SuggestionListGroup
Inherited from ListGroup
:
groupDisplaysSublist
minGroupSize
compareGroupItems
showGroupList
sortListGroup
Inherited from ListGroup
:
createGroupSublister
groupCardinality
groupNounPhraseCount
showGroupItem
showGroupItemCounted
// compareGroupItems (a, b) Interface description only | lister.t[2104] |
Note that we don't care about the return value beyond whether it's positive, negative, or zero. This makes it especially easy to implement this method if the sorting order is determined by a property on each object that has an integer value: in this case you simply return the difference of the two property values, as in a.prop - b.prop. This will have the effect of sorting the objects in ascending order of their 'prop' property values. To sort in descending order of the same property, simply reverse the subtraction: b.prop - a.prop.
When no implementation of this method is defined in the group object, sortListGroup won't bother sorting the list at all.
By default, we don't implement this method. Subclasses that want to impose a sorting order must implement the method.
showGroupList (pov, lister, lst, options, indent, infoTab) OVERRIDDEN | lister.t[2051] |
sortListGroup (lst) | lister.t[2069] |