[Numpy-discussion] numarray: lexicographical sort

Edward C. Jones edcjones at comcast.net
Fri Apr 29 11:32:07 CDT 2005


Suppose arr is a two dimensional numarray. Can the following be done 
entirely within numarray?

alist = arr.tolist()
alist.sort()
arr = numarray.array(alist, arr.type())






More information about the Numpy-discussion mailing list