arsentievalex / streamlit-dynamic-filters

Custom component with dynamic multiselect filters for Streamlit
MIT License
68 stars 12 forks source link

Sorting of columns individually #8

Closed johanneswerner closed 7 months ago

johanneswerner commented 7 months ago

I have a few columns in my dataframe that I would like to sort individually (one mixedsort: 1mg - 3mg - 10mg, the rest alphabetically, however each column should be sorted alphabetically) - is there a possibility to apply the sorting that all dropdown menus are sorted in themselves (even if this is not the order that appears in the dataframe input for a respective column)?

Thank you!

arsentievalex commented 7 months ago

I added alphabetical sorting by default in the new version. Please use pip install streamlit-dynamic-filters==0.1.6