[jQuery] JQuery Tablesorter - Multiple Options

[jQuery] JQuery Tablesorter - Multiple Options


Just a quick question. I'm trying to combine mutliple tablesoter
options but I'm not able to combine the functions. I'm new to the
Jquery/Javascript arena and haven't been able to find any examples on
the web.
Part 1
Code:
$(document).ready(function() {
$("#draftlist").tablesorter({
headers: {
1: {sorter: false}
}
});
});
Part 2
Code:
$(document).ready(function() {
$("#draftlist").tablesorter();
$("#RankAndHeight").click(function() {
var sorting = [[0,0],[2,0]];
$("#draftlist").trigger("sorton",[sorting]);
return false;
});
});
I've attempted to use them separately in the same js file but it
caused an odd echo effect. I would click any column to sort and it
would perform the action twice as if I double clicked it.
Here was my merge attempt where neither effect worked:
Code:
$(document).ready(function() {
$("#draftlist").tablesorter({
headers: {
1: {sorter: false}
}
$("#RankAndHeight").click(function() {
var sorting = [[0,0],[2,0]];
$("#draftlist").trigger("sorton",[sorting]);
return false;
});
});
});
Any ideas?