How to sort results (dates) from a dynamic tracker field in smarty
I have trackeritems displayed in a plugin List using smarty template.
One of the field is a dynamic list field and it display a list of dates in unsorted order and that is very disturbing for users.
As there is no option in the DIL to display the results in a sorted order I wonder if we have a modifier or a function for this.
The results {$orderrow.holydaysDay} value is:
Copy to clipboard
holydaysDays => "17-10-2019<br>16-10-2019<br>15-10-2019"
From here I tried to sort in an inner foreach.
But couldn’t figure the right parameters or maybe this doesn’t exist in Tiki
Copy to clipboard
{foreach $orderrow.holydaysDays|sortby ??? as $date} {$date} {/foreach}
I also look for a javascript to split and sort the value... But it seem pretty prehistorical to go that way (but may be this is the only way ?)