Home | Trees | Index | Help |
|
---|
Package Modeling :: Package interfaces :: Module SortOrdering |
|
SortOrdering API
SortOrdering instances hold every informations needed to sort objects within the Framework. In particular, they are used by FetchSpecifications so that the fetched objects are returned in a particular order.
More details SortOrdering instances binds a key with a comparison operator. Objects are sorted according to that comparison operator, on values extracted from objects using KeyValueCoding method 'valueForKey'.
SortOrderings are usually provided as tuples. These tuples can be either singletons or plain tuples (len>1). In the latter case, the order within these tuple uniquely defines an ordering method.
The SortOrdering module also define a functiond edicated to in-memory ordering: sortedArrayUsingKeyOrderArray()
CVS Information
$Id: SortOrdering.py,v 1.4 2004/07/20 06:21:41 sbigaret Exp $
Classes | |
---|---|
Base |
|
SortOrderingInterface |
SortOrdering |
Function Summary | |
---|---|
Sorts the supplied array (either a tuple or a list) and returns it sorted according to the sortOrderings. | |
Returns a brand-new SortOrdering instance. |
Function Details |
---|
sortedArrayUsingKeyOrderArray(array, sortOrderings)Sorts the supplied array (either a tuple or a list) and returns it sorted according to the sortOrderings. Return type is: list. |
sortOrderingWithKey(key, operator)Returns a brand-new SortOrdering instance. |
Home | Trees | Index | Help |
|
---|
Generated by Epydoc 2.1 on Sat Mar 4 13:36:24 2006 | http://epydoc.sf.net |