Skip to content

Reverse ​

Reverses the order of the items in an array.

Example ​

Data
json
{
  "sizes": [
    "S",
    "M",
    "L"
  ]
}
liquid
{{ sizes | reverse | join: ', ' }}

Output

html
L, M, S