Sort options inside fs-dropdown with dynamic select

Description

I am using FS-Combobox from a select whose options are from CMS items, sorted (alphabetically).
However, the combobox does not display the options in the same order than the CMS list is

Site URL

Steps to Reproduce

  1. Try selecting the diocese : “Angers”
  2. Try selecting a parish
  3. See that they are not sorted

Expected Behavior

The dropdown list should be sorted

Actual Behavior

The dropdown list is not sorted

Thanks for your help !

Hi @louis.valbray!

When using a Combobox natively with CMS items, the options may not appear in the desired order because the combobox doesn’t sort the items as the CMS list.

However, you could try using List Select to add the sorted CMS items to the Fs-ComboBox.

Let me know if that works for you! :flexed_biceps:

Hello and thank you for your reply.

I built a custom select element (inside the fs-combobox) with the CMS list items directly inside it. (see the HTML tree)

The two dropdowns are connected such as when you select a diocese in the first dropdown, it filters out the second one.
I tried List-select but It did not work out for me in this case because I could not load anything else than single text with option value = label value and thus, could not filter with JS based on option value.

@Support-Pedro ? :folded_hands::folded_hands:

Hey @louis.valbray!

We have submitted this as a feature request for the team to take a look.

Apologies for the inconvenience and thank you for your patience!