Which Liquid filter is used to sort an array in ascending order? 🔄

### Explanation To sort arrays in Liquid, use the `sort` filter: ```liquid {% assign my_array = "zebra, yak, xylophone" | split: ", " %} {{ my_array | sort | join: ", " }} ``` Key points: - `sort` works on arrays of strings or numbers - Sorts in ascending order by default Reference: [Shopify Liquid Filters](https://shopify.dev/docs/api/liquid/filters)

Answer Options:

  • | sort
  • | array_sort
  • | order
  • | ascending
Shopify Free Test
← PreviousQuestion 1 of 1Finish →
00
← PreviousFinish →
Copyright ©Michael Bollin. Found some mistake?[email protected]