Check box status is not retaining when I sort the table ( I am using the Jquery tablesort)

Check box status is not retaining when I sort the table ( I am using the Jquery tablesort)


Check box status is not retaining when I sort the table ( I am using
the Jquery tablesort). I have a table with name , account number ,
select all/ Select none (This is check box).
When I clicks the select all I am able to select all the check box ,
But when I sort on the name or account number I am not able to retain
the status (i.e all the check boxes are un-selected). I have noticed
this problem in IE only FireFox is working fine.
Here the code I am using for selecting all the check boxes
        function allCheckBoxes(){
            $("input[@name=casecheckbox]").each(function(){
                this.checked = true;
            });
        }
I appreciate if some body can help me in solving this.