eelbrain.Dataset.sort_index

Dataset.sort_index(self, order, descending=False)

Create an index that could be used to sort the Dataset.

Parameters:
order : str | data-object

Data object (Var, Factor or interactions) according to whose values to sort the Dataset, or its name in the Dataset.

descending : bool

Sort in descending instead of an ascending order.

See also

sort
sort the Dataset in place
sorted
Create a sorted copy of the Dataset