nikmit has asked for the wisdom of the Perl Monks concerning the following question:
This gets me tangled up, any suggestions welcome. A way of getting my head round it so can figure it out myself in the future would be most useful :)
I have an array built like so:
push(@array, { entry => [$a, $b, $c] });I want to sort @array by the $b value, which happens to be a time stamp.
I know I could build that array directly as an array of array references but it makes some TemplateToolkit code which uses the data later much harder to read, and could break it too.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting an array of hash references of array references
by BillKSmith (Monsignor) on Aug 17, 2016 at 13:21 UTC | |
|
Re: Sorting an array of hash references of array references
by nikmit (Sexton) on Aug 17, 2016 at 09:52 UTC |