Budapest Table Sorting Plugin
Budapest is a jQuery plugin that allows for simple table sorting. It allows the developer to have full control over the sorting.
Basic usage:
$("table").budapest();
Advanced usage:
$("table").budapest({ headers: { 0: { sortable: true}, 1: { sortable: true}, 2: { sortable: true} }, sortIndex: 2, sortDirection: "asc", onSort: function(index, val1, val2, direction){ //provide your own sorting algorithm for each column! //must return either -1, 0, or 1 }, onSorted: function(index, direction){ //this event is fired after each sort! } });

