jorisvandenbossche commented on code in PR #14781:
URL: https://github.com/apache/arrow/pull/14781#discussion_r1037880084


##########
python/pyarrow/array.pxi:
##########
@@ -1399,6 +1399,29 @@ cdef class Array(_PandasConvertible):
         """
         return _pc().index(self, value, start, end, memory_pool=memory_pool)
 
+    def sort(self, order="ascending", **options):
+        """
+        Sort the Array
+
+        Parameters
+        ----------
+        order : str, default "ascending"
+            Which order to sort values in.
+            Accepted values are "ascending", "descending".
+        **options : dict, optional
+            Additional sorting options
+            As allowed by :class:`SortOptions`

Review Comment:
   Another nit: I see we have this in other places as well, but the "dict" in 
the docstring as type for `**options` is quite misleading .. (you can't pass a 
dict in practice as argument)
   
   (but since we use this everywhere, we can tackle that in a separate PR)



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to