I use a lot of selectbox in my Streamlit application, and I noticed that while the options are sorted alphabetically when the page is loaded, the order gets reversed as soon as I start typing.
For instance, I have the following options in the list:
As soon as I type ‘A’ in the box, the order becomes:
Is it the expected behavior?
This is how I define my selectboxes:
spec_no = st.selectbox(‘Select specification’, spec_data[‘SPEC_NO’].unique().tolist())