# Dash Datatable sorting incorrect

**URL:** <https://community.plotly.com/t/dash-datatable-sorting-incorrect/35763>\
**Category:** Dash Python\
**Created:** [March 3, 2020, 6:22pm UTC](https://community.plotly.com/t/dash-datatable-sorting-incorrect/35763 "2020-03-03T18:22:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SGlascott](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@SGlascott](https://community.plotly.com/u/SGlascott)\
**Post date:** [March 3, 2020, 6:22pm UTC](https://community.plotly.com/t/dash-datatable-sorting-incorrect/35763/1 "2020-03-03T18:22:46Z")

</div>

I have a very simple dash datatable with filtering and sorting enabled. The table reloads, so its not a callback issue. However, when I sort the table by a single column the values are out of place.

I am having issues uploading an image, but when sorting is applied the column order is sorted to:  
[9.8, 8.1,…,45.6, 7.3,…]

As you can see, the 45.6 is very out of place and should be first since I have sorted by DESC.

The table is just a simple datatable from a dataframe with sort\_action and filter\_action set to native.

I have tried removing the predefined sorting in the dataframe, disabling other cols, disabling other features, I checked the col type it is a float… Not sure what else to do!

Thank you 🙂

---

<div class="post-metadata">

**Author:** ![chriddyp](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/chriddyp/32/16855_2.png) [@chriddyp](https://community.plotly.com/u/chriddyp)\
**Post date:** [March 6, 2020, 4:10am UTC](https://community.plotly.com/t/dash-datatable-sorting-incorrect/35763/2 "2020-03-06T04:10:42Z")

</div>

hm, could you share a simple, reproducible example?
