olmsiat has asked for the wisdom of the Perl Monks concerning the following question:
where the structure is loaded correctly with data. I would like to end up with a similar structure sorted first by the maturity_sort and secondly by rich_cheap. rich_cheap is a numeric value. I saw some of the code in the O'Reilly Cookbook (4.14 & 4.15) and was a little confused with the map/sort/map. Can anyone shed some light on how the code would be structured to accomplish the desired sort. Many thanks. Andrew$the_data[$datapointcnt] = { x => $maturity_range_counter, y => $oas, rating => $rating, cusip => $cusip, description => $description, maturity => $maturity, maturity_yrs => $maturity_yrs, maturity_sort => $maturity_sort, oas => $oas, rich_cheap => $rich_cheap};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting
by japhy (Canon) on Feb 12, 2002 at 21:09 UTC | |
|
Re: Sorting
by vladb (Vicar) on Feb 12, 2002 at 19:24 UTC | |
|
Re: Sorting
by rjray (Chaplain) on Feb 12, 2002 at 22:48 UTC |