Hi Dieter, instead of creating wiki pages for describing sort argmax etc. on top level better create wiki-pages as subpages of Numpy Functions by Category. i.e. rename sort to Numpy Functions by Category/Sort. That keeps the wiki more organised. Thanks, -- DavidLinke 2008-03-21 10:43:40
My Wiki Sandbox
Whats below is an attempt to consolidate and reformulate all available docs into a coherent structure expressing detail and fast access.
Sort
Abstract
Sorts the array with the given axis, algorithm, and order.
Function
Method
Signature
- Function
sort (arr, axis=-1, kind='quick', order=None)
- Method
arr.sort (axis=-1, kind='quick', order=None)
Arguments
- return
- Function
A sorted copy of arr.
- Method
- None. The sort is in-place and therefore affects the underlying array (no copy is made).
- axis
- The axis the sort is applied to in a multi-dimensional array.
- kind
The underlying algorithm to use. also see: Sorting Algorithms
- 'quick'
- 'heap'
- 'merge'
- order
- Used for arrays with fields defined. Can be one of the following:
- A single string.
- Indicates that field as the basis for the sort.
- A list or tuple of strings.
- Basis is in list order.
- None
- If fields are defined, then the first field is the basis.
- A single string.
Details
Sorting Algorithms
sorting
Example
sort()
Notes
See Also
argsort : Indirect sort.
lexsort` : Indirect stable sort on multiple keys.
searchsorted` : Find keys in sorted array.

