mirror of
https://github.com/DataTables/DataTables.git
synced 2025-01-19 12:52:11 +01:00
4913226456
- invalidation is going to play an important part in the new API, with the ability to invalid the cached data for sorting, filtering, display etc so we need to be able tos upport this in the core. - In fairness the sorting didn't actually need invalidation because it would always get data on every sort, which is bad for performance - proper invalidation and caching will resolve this. Which is what has been implemented here. - I had expected (hoped) to be able to save a bit of space in the refactor, but only aorund 100 bytes (compressed) saved, which will probably be lost when the invalidation is fully implemented in the API. Still, better performance, tidier code, and no extra space... Fix: Sorting classes now show multi column sorting when a column is defined to sort over multiple columns (sortData). Previously it would only show the first column.