DataTables - invalid SORT results when using CHROME
DataTables - invalid SORT results when using CHROME
Hi,
I was working with datatables and noticed a very strange behavior on Chrome when using custom sort functions.
This are my findings:
- when working with small lists (less than ~10) custom sorts work well on chrome and in Firefox
- when working with slight bigger tables (still small, around 30 entries) Firefox still returns valid sort results, but Chrome fails to do this.
I made a fiddle where you can see the behavior. Inside you l'll see two tables which are same just have different data sizes, first one small - everything works there be it Chrome or Firefox.
The second one is bigger and chrome fails to sort it.
Fiddle: https://jsfiddle.net/ogoossens/d35cb4eh/3/
Try to open the full Fiddle in Firefox and Chrome and tell me if its only me where the second table wont sort.
Thank you
Answers
I updated your function to look like the example here and it seems to work:
https://datatables.net/manual/plug-ins/sorting
Updated example:
https://jsfiddle.net/mxy76fwr/2/
Kevin