Document sort stability and NaN handling (#3400)
This commit is contained in:
@@ -2821,6 +2821,9 @@ void init_ops(nb::module_& m) {
|
||||
R"pbdoc(
|
||||
Returns a sorted copy of the array.
|
||||
|
||||
The sort is stable, meaning equal elements preserve their relative
|
||||
order. ``NaN`` values are placed at the end.
|
||||
|
||||
Args:
|
||||
a (array): Input array.
|
||||
axis (int or None, optional): Optional axis to sort over.
|
||||
@@ -2848,6 +2851,9 @@ void init_ops(nb::module_& m) {
|
||||
R"pbdoc(
|
||||
Returns the indices that sort the array.
|
||||
|
||||
The sort is stable, meaning equal elements preserve their relative
|
||||
order. ``NaN`` values are placed at the end.
|
||||
|
||||
Args:
|
||||
a (array): Input array.
|
||||
axis (int or None, optional): Optional axis to sort over.
|
||||
|
||||
Reference in New Issue
Block a user