Sort the field, viewed as a single element field list, in place.
Note that f.sort(cmp, key, reverse) is equivalent to f, thus providing compatiblity with a single element field list.
New in version 1.0.4.
See also
Examples 1: |
---|
>>> f.sort()
Parameters: |
|
---|---|
Returns: | |
Examples 2: |
>>> id0 = id(f)
>>> f.sort()
>>> id0 == id(f)
True
>>> g = cf.FieldList(f)
>>> id0 = id(g)
>>> g.sort()
>>> id0 == id(g)
True