Reverse parameter in ordering functions
![](https://secure.gravatar.com/avatar/030ea722b7caae6126997d9ae5016454.jpg?s=120&d=mm&r=g)
Hi all, I created pull request #14989, which adds reverse parameter in np.sort function. As suggested in the comments, I want to ask for some feedback on adding parameter 'reverse' . Not only in sort, but in ordering functions in general. Magdalena -- Sent from: http://numpy-discussion.10968.n7.nabble.com/
![](https://secure.gravatar.com/avatar/b4f6d4f8b501cb05fd054944a166a121.jpg?s=120&d=mm&r=g)
On Wed, 2019-11-27 at 10:00 -0700, mpro wrote:
Hi all,
I created pull request #14989, which adds reverse parameter in np.sort function.
As suggested in the comments, I want to ask for some feedback on adding parameter 'reverse' . Not only in sort, but in ordering functions in general.
Since the standard python functions all have the `reverse` parameter, it seems like a good idea to me. I agree that when we add it, it probably would be good to aim for adding it for all sorting related functions at the same time. Best, Sebastian
Magdalena
-- Sent from: http://numpy-discussion.10968.n7.nabble.com/ _______________________________________________ NumPy-Discussion mailing list NumPy-Discussion@python.org https://mail.python.org/mailman/listinfo/numpy-discussion
![](https://secure.gravatar.com/avatar/030ea722b7caae6126997d9ae5016454.jpg?s=120&d=mm&r=g)
I added 'reverse' in all ordering functions. The question is whether it's better to add reverse to all C ordering methods or to make changes on Python level. -- Sent from: http://numpy-discussion.10968.n7.nabble.com/
participants (2)
-
mpro
-
Sebastian Berg