reverse
Reverses the order of items in an array.
Parameters
value{Array}: The array to reverse. This parameter is required.returns{Array}: The array with reversed order.
Usage
{{reverse array}}
Example
Original:
{{ join (map collection.products 'title') ', ' }}
Reversed:
{{ join (map (reverse collection.products) 'title') ', ' }}
Was this article helpful to you?