like python' built-in listthe ndarray sort instance method is an in-place sortmeaning that the array contents are rearranged without producing new arrayin [ ]arr randn( in [ ]arr sort(in [ ]arr out[ ]array([- ]when sorting arrays in-placeremember that if the array is view on different ndarraythe original array will be modifiedin [ ]arr randn( in [ ]arr out[ ]array([[- - [- - - - ] - ] - ]]in [ ]arr[: sort(sort first column values in-place in [ ]arr out[ ]array([[- - [- - - - ] - ] - ]]on the other handnumpy sort creates newsorted copy of an array otherwise it accepts the same arguments (such as kindmore on this belowas ndarray sortin [ ]arr randn( in [ ]arr out[ ]array([- - - - ]in [ ]np sort(arrout[ ]array([- - - - ]in [ ]arr out[ ]array([- - - - ]all of these sort methods take an axis argument for sorting the sections of data along the passed axis independentlyin [ ]arr randn( in [ ]arr out[ ]array([ - - ][- - - ] - - - ]]more about sorting www it-ebooks info