I am trying to use the new multisort filter to sort an array in reverse order using a date key, but can't seem to figure out the correct syntax. Here is what I have:
{% for rides in allRides|multisort(eventDate,SORT_DESC,SORT_REGULAR) %}
This throws an error saying "Variable eventDate does not exist". eventDate is definitely a key in the array 'allRides'
If I do this, it works fine, but gets sorted by eventDate ascending:
{% for rides in allRides|sort %}
Some guidance on using the multisort filter would be greatly appreciated!