Ok, I solved my problem with a little hack. I simply added a hidden
<span></span> with the description in the cell and changed the sort to
"simple" and then it sorts just fine. It's a little extra markup but
it works.
-v
On Mar 28, 12:53 am, gr00vy0ne <[EMAIL PROTECTED]> wrote:
> I'm having a weird problem where Tablesorter does not sort properly in
> IE7. It works perfectly fine in Firefox 2.0.0.x and Safari.
>
> The one tricky thing in my structure is that I don't have text in my
> <td> cell. Instead, I have input buttons with values which go directly
> in each cell.
>
> Here's my essential structure:
>
> <table class="tableBorder" cellspacing="0" cellpadding="0">
> <thead>
> <tr>
> <th>Module Name</th>
> <th>Description</th>
> </tr>
> </thead>
> <tbody>
> <tr>
> <td><input id="Submit6" class="select" name="submit1" type="submit"
> value="Edit Page Skins" /></td>
> <td>Enable toggle skins on the Homepage, MLP, TSP, and TLP pages</td>
> </tr>
> <tr>
> <td><input class="select" type="submit" value="Edit This Tool"
> id="Submit22" name="submit1" /></td>
> <td> </td>
> </tr>
> <tr>
> <td><input class="select" type="submit" value="Edit That Tool"
> id="Submit23" name="submit1" /></td>
> <td> </td>
> </tr>
> <tr>
> <td><input class="select" type="submit" value="Edit Another Tool"
> id="Submit24" name="submit1" /></td>
> <td> </td>
> </tr>
> </tbody>
> </table>
>
> In my javascript, I'm doing the following:
>
> $("table").tablesorter({
> textExtraction: $(this).attr("value"),
> headers: {
> 1: { sorter: false },
> sortList: [[0,0]]
> }
>
> });
>
> So, I'm trying to sort by "input value". IE7 doesn't seem to like it.
>
> Any ideas?
>
> -victor