Skip to content

ArraySorting(order=Order.ASCENDING, missing=MissingPosition.LAST) Source

Settings of the sort of an Array, used by Array.sort.

The axis, inside each row or each column, is given to Array.sort itself.

Added in version 0.1.0

Parameters:

Raises:

Examples:

import numdaplot as ndp

grid = ndp.Array.from_list([[3, 1], [2, 4]])
grid.sort(ndp.ArraySorting(order=ndp.Order.DESCENDING), axis=ndp.Axis.EACH_COLUMN)
# Array([[3, 4],
#        [2, 1]], dtype=INT64)