How to display the the highest value in a custom field using liquid?


i have scores numbers in custom field webapp , want sort-display highest score or value first. possible liquid? liquid filter should use can in documentation.

 

thanks.

hi there,

custom field has string of numbers.....

 

1,4,6,3,2,9,8

 

{% assign sorted = this.['my custom field'] | split: ',' -%}

this give array of items. liquid provides sort:

{{sorted | sort}} - order numbers.



More discussions in Developer forum


adobe

Comments

Popular posts from this blog

Illustrator CS6 Ocurrío un error E/S en el archivo.

Why is os_ViewContainer running?

Animate - problem with duplicating scripts after loop