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
In reply to Re^3: Sorting Template Toolkit Array of Hashrefs
by Anonymous Monk
in thread Sorting Template Toolkit Array of Hashrefs
by roho
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |