Support » Plugin: Table Sorter » Table not sorting using the initial sorting instructions

  • Resolved st_83

    (@st_83)


    Hi there,
    my table doesnt seem to be sorting using the initial sorting instructions for the total points column,any ideas?

    <table id=”AutoNumber12st” class=”tablesorter{sortlist: [[8,0]]}” style=”width: 100%;” border=”1″>
    <thead>
    <tr style=”background-color: #e6e6e6; height: 20px;”>
    <th>Club</th>
    <th>Home</th>
    <th>Played</th>
    <th>Points</th>
    <th>Away</th>
    <th>Played</th>
    <th>Points</th>
    <th>Total Points</th>
    </tr>
    </thead>
    <tbody>
    <tr style=”height: 23px;”>
    <td class=”xl69″ style=”width: 24.1427%; height: 23px;”><span style=”font-family: Arial; font-size: small;”>Cardross</span></td>
    <td class=”xl65″ style=”width: 8.77915%; height: 23px;” align=”center”>10</td>
    <td class=”xl65″ style=”width: 9.87654%; height: 23px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 10%; height: 23px;” align=”center”></td>
    <td class=”xl65″ style=”width: 7.28395%; height: 23px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 8.5048%; height: 23px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 9.60219%; height: 23px;” align=”center”></td>
    <td class=”xl65″ style=”width: 14.952%; height: 23px;” align=”center”>8</td>
    </tr>
    <tr style=”height: 24px;”>
    <td class=”xl68″ style=”width: 24.1427%; height: 24px;”><span style=”font-family: Arial; font-size: small;”>Clober</span></td>
    <td class=”xl65″ style=”width: 8.77915%; height: 24px;” align=”center”>4</td>
    <td class=”xl65″ style=”width: 9.87654%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 10%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 7.28395%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 8.5048%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 9.60219%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 14.952%; height: 24px;” align=”center”>9</td>
    </tr>
    <tr style=”height: 24px;”>
    <td class=”xl68″ style=”width: 24.1427%; height: 24px;”><span style=”font-family: Arial; font-size: small;”>Clydebank & Dist</span></td>
    <td class=”xl65″ style=”width: 8.77915%; height: 24px;” align=”center”>6</td>
    <td class=”xl65″ style=”width: 9.87654%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 10%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 7.28395%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 8.5048%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 9.60219%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 14.952%; height: 24px;” align=”center”>7</td>
    </tr>
    <tr style=”height: 24px;”>
    <td class=”xl68″ style=”width: 24.1427%; height: 24px;”><span style=”font-family: Arial; font-size: small;”>Dumbarton</span></td>
    <td class=”xl65″ style=”width: 8.77915%; height: 24px;” align=”center”>8</td>
    <td class=”xl65″ style=”width: 9.87654%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 10%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 7.28395%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 8.5048%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 9.60219%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 14.952%; height: 24px;” align=”center”>10</td>
    </tr>
    <tr style=”height: 24px;”>
    <td class=”xl68″ style=”width: 24.1427%; height: 24px;”><span style=”font-family: Arial; font-size: small;”>Helensburgh</span></td>
    <td class=”xl65″ style=”width: 8.77915%; height: 24px;” align=”center”>7</td>
    <td class=”xl65″ style=”width: 9.87654%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 10%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 7.28395%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 8.5048%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 9.60219%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 14.952%; height: 24px;” align=”center”>6</td>
    </tr>
    <tr style=”height: 24px;”>
    <td class=”xl68″ style=”width: 24.1427%; height: 24px;”><span style=”font-family: Arial; font-size: small;”>Overtoun</span></td>
    <td class=”xl65″ style=”width: 8.77915%; height: 24px;” align=”center”>9</td>
    <td class=”xl65″ style=”width: 9.87654%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 10%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 7.28395%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 8.5048%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 9.60219%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 14.952%; height: 24px;” align=”center”>5</td>
    </tr>
    <tr style=”height: 24px;”>
    <td class=”xl68″ style=”width: 24.1427%; height: 24px;”><span style=”font-family: Arial; font-size: small;”>Vale of Leven</span></td>
    <td class=”xl65″ style=”width: 8.77915%; height: 24px;” align=”center”>5</td>
    <td class=”xl65″ style=”width: 9.87654%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 10%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 7.28395%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 8.5048%; height: 24px;” align=”center”>3</td>
    <td class=”xl65″ style=”width: 9.60219%; height: 24px;” align=”center”></td>
    <td class=”xl65″ style=”width: 14.952%; height: 24px;” align=”center”>4</td>
    </tr>
    </tbody>
    </table>

Viewing 1 replies (of 1 total)
  • Plugin Author Farhan Noor

    (@farhannoor)

    Hi,

    There seems to be a problem in class attribute of Table element. In you class attribute please separate tablesorter and {sortlist: [[8,0]]} by giving some space. Hope it will solve the problem.

    Regards
    Farhan

Viewing 1 replies (of 1 total)
  • The topic ‘Table not sorting using the initial sorting instructions’ is closed to new replies.