Hey all, simple question if I may.

I've got a simple 5X5 matrix that I want to sort all of the numbers of the array in an ascending order ( The first column will be the smallest numbers, the second column will contain the next numbers and so on ...)

I've tried the 'sort' and 'sortrows' functions with no luck. It's only working for individual columns.

Any ideas ?

Thanks.