# CMS Sort + CMS Select

**URL:** <https://forum.finsweet.com/t/cms-sort-cms-select/1874>\
**Category:** General\
**Created:** [September 4, 2023, 3:27am UTC](https://forum.finsweet.com/t/cms-sort-cms-select/1874 "2023-09-04T03:27:01Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/marko/32/592_2.png) [@Marko](https://forum.finsweet.com/u/Marko)\
**Post date:** [September 4, 2023, 3:27am UTC](https://forum.finsweet.com/t/cms-sort-cms-select/1874/1 "2023-09-04T03:27:01Z")

</div>

Hi there,

I hope you’re all doing well. Is it possible to have a select field that is populated using FinSweet’s CMS select feature, and that also includes CMS Sort functionality?

My client has a team list. When the user selects “All Departments,” they would like the list to be sorted by the CMS item field “Overall Order.” However, when any other department is selected, they would like the list to be sorted by the CMS item field “Department Order.”

I hope that makes sense.

Here is the live link:

> **[Commercial Interior Design and Fit-Out Company | Studio DB](https://studio-db.webflow.io/who-we-are)**
>
> Studio DB are a long standing, fully NZ owned and operated commercial interior design and fitout business creating vibrant workspaces.

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [September 4, 2023, 8:59am UTC](https://forum.finsweet.com/t/cms-sort-cms-select/1874/2 "2023-09-04T08:59:29Z")

</div>

Hey @Marko! This can be done with CMS Sort + custom form select!

You’ll need to add the sort field to the Select field choices with the identifier as the value like the image below

![Screen Shot 2023-09-04 at 10.58.40](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/c/c18433cd6a368f36894f925ca56ca267d3082a8a.png)

---

<div class="post-metadata">

**Author:** ![Marko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/marko/32/592_2.png) [@Marko](https://forum.finsweet.com/u/Marko)\
**Post date:** [September 6, 2023, 2:55am UTC](https://forum.finsweet.com/t/cms-sort-cms-select/1874/3 "2023-09-06T02:55:45Z")

</div>

Thanks @Support-Luis, Thank you for the quick reply! I’m using CMS Select ([CMS Select - Webflow CMS dynamic Form Select](https://finsweet.com/attributes/cms-select)) to populate the custom form select, which means the values are populated via the collection.

I can set the value for ‘All Departments,’ as this is a static populated item, as per your screenshot above. What’s the best way to populate the values for the CMS-populated items?

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [September 6, 2023, 8:07am UTC](https://forum.finsweet.com/t/cms-sort-cms-select/1874/4 "2023-09-06T08:07:20Z")

</div>

@marko I think I misunderstood your original request, the items will be sorted by their department after filtering?

If so we can not have this approach but a hidden sort button set to the department that is clicked after each filtering might be the way to go.

---

<div class="post-metadata">

**Author:** ![Marko](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/marko/32/592_2.png) [@Marko](https://forum.finsweet.com/u/Marko)\
**Post date:** [September 7, 2023, 4:28am UTC](https://forum.finsweet.com/t/cms-sort-cms-select/1874/5 "2023-09-07T04:28:14Z")

</div>

@Support-Luis Perfect, that worked! Thanks a bunch!

---

<div class="post-metadata">

**Author:** ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)\
**Post date:** [September 7, 2023, 11:03am UTC](https://forum.finsweet.com/t/cms-sort-cms-select/1874/6 "2023-09-07T11:03:48Z")

</div>

Great to hear! 💪
