{"title":"reverse - Liquid Filter Reference","slug":"reverse-filter-reference","url":"https://support.storeconnect.com/articles/reverse-filter-reference","url_markdown":"https://support.storeconnect.com/articles/reverse-filter-reference.md","subtitle":null,"summary":"Reverses the order of items in a list. Does not work directly on strings, but you can split a string into a list, reverse it, and rejoin.","type":"Developer_Documentation","video_url":"","keywords":"liquid, filters, reverse, lists, storeconnect","last_modified":"2026-08-21T07:12:35+0000","body_markdown":"## Description\n\nReverses the order of the items in an list. `reverse` cannot reverse a string.\n\n| Property | Value |\n|----------|-------|\n| **Return Type** | list |\n| **Category** | lists |\n\n## Examples\n\n\n```liquid\n\n{{ an_list | reverse | join: \", \" }}\n```\n\n\n**Output:** `fire, air, water, earth`\n\nAlthough reverse cannot be used directly on a string, you can split a string into an list, reverse the list, and rejoin it by chaining together filters\n\n\n```liquid\n\n{{ \"Mary had a little lamb.\" | split: \"\" | reverse | join: \"\" }}\n```\n\n\n**Output:** `.bmal elttil a dah yraM`"}