ravid7000 / table-sortable

A jquery plugin to sort and paginate data in table form.
https://table-sortable.now.sh
MIT License
35 stars 14 forks source link

Empty cell value #23

Open m-ovs opened 3 years ago

m-ovs commented 3 years ago

If column contain some empty values the sorting fails with error "Column name "%s" does not exist in collection". The error appears if an empty cell located in the first position in the table. So, if the empty cell initially not at the first position the ASC sorting passes well, but then empty cell took the first position and second DESC sorting fails with an error above. For now I solved the problem just commenting this: /*return this._formatError(n[t],"sort",'Column name "%s" does not exist in collection',t),*/ But this is an ugly hack. Sorry, I'm not a pro in JS to make you a good PR.