mirror of
https://github.com/DataTables/DataTables.git
synced 2025-02-20 18:54:15 +01:00
Based on the discussion in the forms ( http://datatables.net/forums/discussion/18456 ) the fix from 8935b8a wasn't good enough. What was happening was that the _save_data function was doing a deep copy of all arrays (minus the data array) so the default sort was stil applied. The fix is to reinstate the _fnExtend function which does a jQuery like deep extend on objects and a shallow extend on arrays. That is extended slightly to allow array references to be broken on initialisation, to resolve the issue 8935b8a attempted to (sorting array would be used for two tables for example), by an optional parameter. This should resolve the issue correctly this time!