Forum Discussion
gaiadm_
3 months agoSupporter
Liquid arrays personalization
Hello everyone I'm trying to implement this liquid code in one of my templates: {% assign combinedResults = canvas_entry_properties.${data}.results | concat: canvas_entry_properties.${data}.featured...
phil_l
3 months agoSupporter
Both sort and sort_reverse work in Braze Liquid e.g. to get your prices in descending order:
{% assign combinedResults = canvas_entry_properties.${data}.results | concat: canvas_entry_properties.${data}.featuredResults %} {% assign results = combinedResults | sort_reverse: 'totalEstimatedCost.amount' %}
From the result that you're getting, my guess is that in one or both of the arrays, the totalEstimatedCost.amount isn't an integer, so it's not sorting properly?
Related Content
- 10 months ago