reverse

Reverse the order of all elements in an array, returning a reversed collection.

Syntax

{{ array | reverse }}

Example

{% assign steps = "Intake,Review,Approved" | split: "," %}{{ steps | reverse | join: " - " }}

Output

Approved - Review - Intake

The reverse filter inverts the sequence of elements across an array, placing the last item first and the first item last. It operates on array copies, leaving underlying source collections unmodified.

On programmatic landing pages, reverse changes the display order of chronological milestones or geographic breadcrumbs. For example, reversing hierarchical paths from county-city-neighborhood into neighborhood-first focus: {{ row.breadcrumbs | split: '/' | reverse | join: ' · ' }}. This immediately highlights local neighborhood relevance to mobile search visitors.

Try this syntax in the editor.