Skip to content

CMS & Logic4 min read

How to Dynamically Sort a Webflow CMS Collection

Learn how to add dynamic sorting to your Webflow CMS collections with Finsweet CMS Sort: attributes and sort buttons.

In this tutorial, Sandro, cofounder of the Gemeos Webflow agency, shows you how to let users dynamically sort a Webflow CMS collection.

Sort optionfs-cmssort attributeCMS field type
Alphabetical A-Zname:ascText
Alphabetical Z-Aname:descText
Price low to highprice:ascNumber
Price high to lowprice:descNumber
Newest firstdate:descDate

1. Add the Finsweet CMS Sort script

<script src="https://cdn.jsdelivr.net/npm/@finsweet/attributes-cmssort@1/cmssort.js" defer><!--</span-->script>

2. Set up your Collection List

On your Collection List Wrapper, add the fs-cmssort-element="list" attribute. On each CMS field you want to use as a sorting criterion, add fs-cmssort-field="[nom-du-champ]" to the corresponding element.

3. Create the sort buttons

Create buttons or links for each sort option. Add the fs-cmssort-field="[nom-du-champ]:[asc/desc]" attribute to each one. Example: fs-cmssort-field="name:asc" to sort by name A-Z.

4. Style the active state

Finsweet automatically adds the fs-cmssort-active class to the active sort button. Target this class in your Webflow styles to visually show the selected option.

Conclusion

Dynamic sorting improves the experience on catalogs and listings. Use cases:

  • Product catalog sortable by price
  • Article directory sortable by date
  • Member list sortable alphabetically

Published on May 19, 2026

Sandro DA SILVA

Growth Marketer, Webflow expert, and jack-of-all-trades. Sandro handles commercial operations, ensures projects run smoothly, and addresses marketing-related issues (SEO, Tracking, Copywriting, etc).

You might be interested in these tutorials

Related tutorials

See all

You're going to working with us, guaranteed

Ready to launch your business?

get a quote

Let’s f*****G GO !!