Skip to content

Commit

Permalink
Update _sorting_functions.py
Browse files Browse the repository at this point in the history
  • Loading branch information
Illviljan committed Aug 25, 2024
1 parent 3cebb62 commit 042940b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xarray/namedarray/_array_api/_sorting_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def sort(
) -> NamedArray:
xp = _get_data_namespace(x)
_axis = _dims_to_axis(x, dim, axis)
_data = xp.sort(x._data, axis=_axis, descending=descending, stable=stable)
_data = xp.sort(x._data, axis=_axis, stable=stable)
if descending:
_data = xp.flip(_data, axis=axis)
return x._new(data=_data)

0 comments on commit 042940b

Please sign in to comment.