Factor.sort_index(descending=False, order=None)

Create an index that could be used to sort this data_object.

  • descending (bool) – Sort in descending instead of the default ascending order.

  • order (None | sequence) – Sequence of cells to define a custom order. Any cells that are not present in order will be omitted in the sort_index, i.e. the sort_index will be shorter than its source.


sort_index – Array which can be used to sort a data_object in the desired order.

Return type

array of int