[Purdue-pm] How to sort one dimension of a 2d array
Phillip San Miguel
pmiguel at purdue.edu
Fri Jan 29 06:15:49 PST 2010
This is probably pretty straight forward, but:
I have a hash of 2d arrays. I want to sort by numerical value across one
of these dimensions. What would be the syntax for that?
$table{$colors}[0..num_of_traces-1][0..num_data_points-1]
I want sort the values in the first (traces) dimension.
When I try to write the sort syntax my head starts spinning.
--
Phillip
More information about the Purdue-pm
mailing list