Learn how to use Dash Bio for next-gen sequencing & quality control. 🧬Register for the Oct 27 webinar.

How to sort selected values in a multi-enabled drop-down component?

by default the values show up in the order they were selected.
For example:

I would like the selected values to be in alphabetical order. Could not find anything in (dcc.Dropdown | Dash for Python Documentation | Plotly) about this.

Thanks!

I solved this by saving the “values” list to a store, and using that store as an input for a callback that feeds back to that dropdown values list (passing it back as sorted)