DataTables / DataTablesSrc

DataTables source repository
https://datatables.net
MIT License
628 stars 423 forks source link

Sorting breaks if column has data-order on only some rows #217

Closed brunom closed 2 years ago

brunom commented 2 years ago

See http://live.datatables.net/tojuraqo/1/ I've made Tiger Nixon's age explicit for sorting. When you click on the age header, the order is random.

AllanJard commented 2 years ago

Yes, this is actually expected, If you use the data attributes, they need to be used on all rows for that column. DataTables doesn't look for one and then if it can't find it look for another source for it - it just always reads from the single source.