in reply to Re^2: Sorting Template Toolkit Array of Hashrefs
in thread Sorting Template Toolkit Array of Hashrefs
Since row.agendas.0.agendaDate retrieves the value inside the FOREACH loop,
But that is not a (singular) key or method , it is a compound expression
Template::Manual::VMethods says
An argument can be provided to specify a search key. Where an item in the list is a hash reference, the search key will be used to retrieve a value from the hash which will then be used as the comparison value. Where an item is an object which implements a method of that name, the method will be called to return a comparison value.
To see how its implemented view sub Template::VMethods::list_sort
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Sorting Template Toolkit Array of Hashrefs
by roho (Bishop) on Jul 19, 2012 at 10:35 UTC | |
by Anonymous Monk on Jul 21, 2012 at 10:49 UTC | |
by roho (Bishop) on Jul 23, 2012 at 15:33 UTC |