By "5st", I'm assuming you mean 5th (pronounced fifth).

A = rand(10, 10)
B = sortrows(A, by=x->x[5])

should do what you want. "by" allows you to do sort by any arbitrary 
function of the input (which would be the rows in this case).

-Eric

On Wednesday, January 1, 2014 11:04:19 AM UTC-6, paul analyst wrote:
>
>
> how to sort the array by 5st (any) column?  
> (Julia sorts by default by 1st column) 
>
>
> A = rand (10,10)
> B = sortrows (A,?)
>
>
> Paul
>

Reply via email to