# # Sorting, searching, and counting

## # Sorting

methoddescription
sortopen in new window(a[, axis, kind, order])Return a sorted copy of an array.
lexsortopen in new window(keys[, axis])Perform an indirect stable sort using a sequence of keys.
argsortopen in new window(a[, axis, kind, order])Returns the indices that would sort an array.
ndarray.sortopen in new window([axis, kind, order])Sort an array in-place.
msortopen in new window(a)Return a copy of an array sorted along the first axis.
sort_complexopen in new window(a)Sort a complex array using the real part first, then the imaginary part.
partitionopen in new window(a, kth[, axis, kind, order])Return a partitioned copy of an array.
argpartitionopen in new window(a, kth[, axis, kind, order])Perform an indirect partition along the given axis using the algorithm specified by the kind keyword.

## # Searching

methoddescription
argmaxopen in new window(a[, axis, out])Returns the indices of the maximum values along an axis.
nanargmaxopen in new window(a[, axis])Return the indices of the maximum values in the specified axis ignoring NaNs.
argminopen in new window(a[, axis, out])Returns the indices of the minimum values along an axis.
nanargminopen in new window(a[, axis])Return the indices of the minimum values in the specified axis ignoring NaNs.
argwhereopen in new window(a)Find the indices of array elements that are non-zero, grouped by element.
nonzeroopen in new window(a)Return the indices of the elements that are non-zero.
flatnonzeroopen in new window(a)Return indices that are non-zero in the flattened version of a.
whereopen in new window(condition, [x, y])Return elements chosen from x or y depending on condition.
searchsortedopen in new window(a, v[, side, sorter])Find indices where elements should be inserted to maintain order.
extractopen in new window(condition, arr)Return the elements of an array that satisfy some condition.

## # Counting

methoddescription
count_nonzeroopen in new window(a[, axis])Counts the number of non-zero values in the array a.