Loading...
 
Features / Usability

Features / Usability


How to sort results (dates) from a dynamic tracker field in smarty

United Kingdom

Hi B

I think you'll need to use the PHP sort function https://www.php.net/sort

You'll need to add it as an allowed php function in the security control panel, and the use it something like (totally untested)

Hmm, but you'll need to turn the string into an array first... try

{$dates = '<br>'|explode:$orderrow.holydaysDays}
{$sort($dates)}
{'<br>'|implode:$dates}


However... you will also have to change the date format so it sorts correctly, to YYYY-MM-DD - hmm, must be a better way eek

Upcoming Events

No records to display

Why Register?

Register at tiki.org and you'll be able to use the account at any *.tiki.org site, thanks to the InterTiki feature. A valid email address is required to receive site notifications and occasional newsletters. You can opt out of these items at any time.