Skip to main content

NumPy Array Sorting


In this tutorial you will learn:

  • What is array sorting?
  • Sorting 1D and 2D arrays
  • Sorting 3D arrays

Array Sorting

Array sorting is carried out to arrange the elements of the array in an ordered sequence. Array sorting may be carried out alphabetically or numerically. Array sorting facilitates and speeds up the binary array search. In NumPy array sorting is carried out using sort() function. The function can takes in one mandatory parameter which is the array itself that is to be sorted and 3 optional parameters which includes axis, searching algorithm and field. There are 4

Add new comment