Add

Lorem ipsum

Lorem ipsum

A
A
A
CMS & Logic

4 views

4 min

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>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.

good to know

Finsweet CMS Sort sorts items already loaded in the DOM: it doesn't make a new request to the Webflow API. If you have more than 100 items with pagination, sorting only applies to the current page, not the whole collection. To sort an entire large collection, combine CMS Sort with CMS Load (mode 'all') to load every item before sorting.

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

Good to know

Heading

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse varius enim in eros elementum tristique. Duis cursus, mi quis viverra ornare, eros dolor interdum nulla, ut commodo diam libero vitae erat. Aenean faucibus nibh et justo cursus id rutrum lorem imperdiet. Nunc ut sem vitae risus tristique posuere.

Lorem ipsum dolor sit amet consectetur.

Lorem ipsum dolor sit amet consectetur. Aliquam orci sagittis dignissim sapien praesent donec.

Lorem ipsum

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Published on

You might be interested in these tutorials

Similar tutorials

SEO / GEO

5 min read

5 views

How to Set Up a Redirect in Webflow? (2026)

Updated on 19.12.2025 by Sandro DA SILVA

SEO / GEO

5 min read

5 views

Add structured data to your Webflow site?

Updated on 21.08.2025 by Sandro DA SILVA

No-code

5 min read

5 views

How to Obfuscate a Link in Webflow

Updated on 23.04.2025 by Sandro DA SILVA

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

Ready to launch
Your business?

Alexandre

Max

Enora

Bryan

Cannelle

Tiphaine

You'll :heart: our collaboration...