Streamlit Table Sorting, "None" Value shows on top


I have a table with multiple columns that contain a number or “None” value. When I sort by column by clicking on the column name, the sorting priority is:
None, 0, 1, 2, 3… {highest number}

Desired output:
0, 1, 2, 3, … {highest number}, None

Currently my “solution” is to replace “None” with 9999999 to but it doesn’t look professional.

How can I set it so when I click the column name I get the desired output?

Hey @mih,

Are you using st.table? Can you share a minimal code snippet?

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.