________________________________
 From: MARK BAKER <[email protected]>
To: "[email protected]" <[email protected]> 
Sent: Wednesday, February 1, 2012 10:43 PM
Subject: how to sort a piddle ???
 

I have been looking over PDL and trying to learn every thing inside and out 

and I came across this, how do I sort a piddle ???
is there a special function for sorting a piddle 

I tried this it doesn't work ...

pdl> @e = pdl(3,2,6,4,8,6);
pdl> @r =  sort{$a <=> $b} @e;
pdl> p @r;
[3 2 6 4 8 6]
pdl>  why didnt this sort ?

Now I can think of about 6 different ways to sort this 

but they are tedious maybe someone can show me a simpler way !

Thanks 


-Mark R Baker 

[email protected]
_______________________________________________
Perldl mailing list
[email protected]
http://mailman.jach.hawaii.edu/mailman/listinfo/perldl

Reply via email to