Skip to content

Commit

Permalink
fix: Fixed ivy.argsort for jax backend (#28422)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai-Suraj-27 committed Feb 26, 2024
1 parent e1c93cb commit e22cd90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ivy/functional/backends/jax/sorting.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def argsort(
) -> JaxArray:
kind = "stable" if stable else "quicksort"
return (
jnp.argsort(-x, axis=axis, kind=kind)
jnp.argsort(x, axis=axis, kind=kind, descending=descending)
if descending
else jnp.argsort(x, axis=axis, kind=kind)
)
Expand Down

0 comments on commit e22cd90

Please sign in to comment.