swat.cas.table.CASTable.sort_values

CASTable.sort_values(self, by, axis=0, ascending=True, inplace=False, kind='quicksort', na_position='last')

Specify sort parameters for data in a CASTable

Parameters
bystring or list-of-strings

The name or names of columns to sort by.

axisint, optional

Not implemented.

ascendingboolean or list-of-booleans, optional

Sort ascending or descending. Specify a list of booleans if sort orders are not all one type.

inplaceboolean, optional

If True, the sort order is embedded into the CASTable instance. If False, a new CASTable is returned with the sort parameters embedded.

kindstring, optional

Not implemented.

na_positionstring, optional

Not implemented.

Returns
None

If inplace == True.

CASTable

If inplace == False.

Notes

Since CAS tables can be distributed across a grid of machines the order that they are stored in is not guaranteed. A sort order is required to retrieve data in a predictable order.