roho has asked for the wisdom of the Perl Monks concerning the following question:
[% myobject = [ { 'agendas' => [ { 'agendaDate' => '2012-07-19T10:00:00.000- +04:00', 'id' => '361309' } ] }, { 'agendas' => [ { 'agendaDate' => '2012-07-25T10:00:00.000- +04:00', 'id' => '361410' } ] }, { 'agendas' => [ { 'agendaDate' => '2012-07-17T10:00:00.000- +04:00', 'id' => '361740' } ] } ] %] [% FOREACH row IN myobject.sort('agendas.0.agendaDate') %] [% 'date = ' _ row.agendas.0.agendaDate %]</br> [% END %]
"Its not how hard you work, its how much you get done."
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Sorting Template Toolkit Array of Hashrefs
by locked_user sundialsvc4 (Abbot) on Jul 18, 2012 at 17:56 UTC | |
by roho (Bishop) on Jul 18, 2012 at 18:20 UTC | |
by Anonymous Monk on Jul 19, 2012 at 01:22 UTC | |
by roho (Bishop) on Jul 19, 2012 at 10:35 UTC | |
by Anonymous Monk on Jul 21, 2012 at 10:49 UTC | |
| |
by Anonymous Monk on Mar 07, 2013 at 10:37 UTC | |
by roho (Bishop) on Jul 18, 2012 at 18:36 UTC |