![](https://secure.gravatar.com/avatar/a539e4b584f7acae019eff0e35a1b836.jpg?s=120&d=mm&r=g)
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())
![](https://secure.gravatar.com/avatar/faf9400121dca9940496a7473b1d8179.jpg?s=120&d=mm&r=g)
On Fri, 2005-04-29 at 14:30, Edward C. Jones wrote:
I'm pretty sure the answer is no. The comparisons in numarray's sort() functions are all single element numerical comparisons. The list sort() is using a polymorphic comparison which in this case is the comparison of two lists. There's nothing like that in numarray so I don't think it's possible. Todd
![](https://secure.gravatar.com/avatar/faf9400121dca9940496a7473b1d8179.jpg?s=120&d=mm&r=g)
On Fri, 2005-04-29 at 14:30, Edward C. Jones wrote:
I'm pretty sure the answer is no. The comparisons in numarray's sort() functions are all single element numerical comparisons. The list sort() is using a polymorphic comparison which in this case is the comparison of two lists. There's nothing like that in numarray so I don't think it's possible. Todd
participants (2)
-
Edward C. Jones
-
Todd Miller