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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

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

DickCun
12-Amethyst

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.....

ACCEPTED SOLUTION

Accepted Solutions
DickCun
12-Amethyst
(To:DickCun)

Thanks all for your help!!!!

View solution in original post

8 REPLIES 8

See please the csort function.

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

Werner_E
25-Diamond I
(To:DickCun)

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)

DickCun
12-Amethyst
(To:DickCun)

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

Werner_E
25-Diamond I
(To:DickCun)

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

DickCun
12-Amethyst
(To:DickCun)

Thanks all for your help!!!!

Announcements

Top Tags