eelbrain.Dataset.sort

Dataset.sort(order, descending=False)

Sort the Dataset in place.

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_index

Create an index that could be used to sort the Dataset

sorted

Create a sorted copy of the Dataset