cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Change values in columns in an array so that they are in ascending order

DickCun
1-Newbie

Change values in columns in an array so that they are in ascending order

Convert the values in the following matrix:

 

 

so that they are in ascending order thusly:

 

 

Thanks for anyhelp provided!

 

Dick.....

1 ACCEPTED SOLUTION

Accepted Solutions

Thanks all for your help!!!!

View solution in original post

8 REPLIES 8

See please the csort function.

MikeArmstrong
5-Regular Member
(To:DickCun)

I cannot see the images you have uploaded please upload worksheet.

Images cannot be inserted in the context of a post via cut and paste - it only looks OK until you add the reply! You have to use the appropriate button to insert images.

To attach files you have to chose "Use advanced editor" at the upper right.

Have you looked up in the help the various sort commands? (sort, csort, rsort)

Sorry about images not showing up......

Here is the worksheet I have been using to resolve this issue......

Dick.......

My variant:

Matrix+Values+Ascending+Order-Val.png

Here is my appraoch.

As you want every column to be sorted on its own you can't use csort but have to use sort() and the column selector.

23.06.png

column by column

Thanks all for your help!!!!

Top Tags