ANIMATED TABLES JQUERY
This plugin allows you to animatedly sort a table based on a column’s s, or on the content/value of a child/descendant element within those s. The various
s fly to their new homes, giving a nice effect. It also supports sorting on REGEXP matches. You can also control whether row relationships are maintained, whether it sorts on ascii or numeric and ascending or descending.
Usage & parameters
Call tableSort(params) on a table returned by a jQuery selector.
$(selector).tableSort(params);
…where params is an object of property/value pairings, including:
onCol (int, required) – the index of the column in your table to sort on (not zero-indexed)
keepRelationships (bool, default: false) – if true, row relationships wil be maintained. That is, the sibling <td>s will move also
regexp (RegExp, default: null) – a string representing a regular expression (/pattern/) to sort on instead of the complete contents of the <td>. Useful with regexpIndex – see below.
regexpIndex (int, default: 0) – if sorting on a regular expression, this is the index of the returned array of matches to use for the sort, should it return more than one match. See below for an example of this, where a regexp sub-pattern is used.
child (string) – sort on the content/value of a child/descendant element within each <td>, rather than on the <td>s themselves. This should be a selector string to match that element. See notes for more info.
sortType (string, default: ascii) – either ‘ascii’ or, if wanting to sort numerically, ‘numeric’
sortDesc (bool, default: false) – if true, the sort will be done in descending order, not ascending
