public sort(axis as Long) as NDArray<T>
Sorts the NDArray along one axis, in place.
a = NDArray<Int>([[3, 2], [1, 4]]) a.sort(axis=0)