cf.Field.sort

Field.sort(*args, **kwargs)[source]

Sort of the field in place.

This method is null in that it always makes no changes to the field. It exists to provide compatibility with cf.FieldList objects, for which sorting the order of fields is a meaningful operation.

See cf.FieldList.sort for details.

Parameters :
args, kwargs: optional

See cf.FieldList.sort.

Returns :

None

Examples

>>> g = f.copy()
>>> f.sort()
>>> f.equals(g)
True

Previous topic

cf.Field.sin

Next topic

cf.Field.squeeze

This Page