raghuprasad241 has asked for the wisdom of the Perl Monks concerning the following question:
1014 1 10 1015 51 100 1016 11 50 1017 101 -
Now I would like the above data to be updated to the following. See how the values 2x2, 2x3 and 3x2, 3x3 switched places respectively because now they are in the proper sorting order however the value in the first column(key) remain unchanged
What is the best way to approach this problem? Any inputs/help is greatly appreciated.1014 1 10 1015 11 50 1016 51 100 1017 101 -
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting a matrix based on the values of columns
by Athanasius (Archbishop) on Mar 10, 2016 at 02:55 UTC | |
|
Re: Sorting a matrix based on the values of columns
by redbull2012 (Sexton) on Mar 10, 2016 at 22:07 UTC | |
by kcott (Archbishop) on Mar 11, 2016 at 11:53 UTC | |
by redbull2012 (Sexton) on Mar 11, 2016 at 13:50 UTC | |
by raghuprasad241 (Beadle) on Mar 15, 2016 at 21:21 UTC | |
by raghuprasad241 (Beadle) on Mar 17, 2016 at 15:56 UTC | |
by redbull2012 (Sexton) on Mar 18, 2016 at 10:16 UTC | |
by raghuprasad241 (Beadle) on Mar 18, 2016 at 14:53 UTC |