Sorting columns, fixed column

Sorting columns, fixed column

DxDogoDxDogo Posts: 2Questions: 2Answers: 0
edited February 2016 in Free community support
<thead>
  <tr>
    <th class="nosort">#</th>
    <th>Name</th>
    <th>Age</th>
    <th>Location</th>
  </tr>
</thead>

I have a while loop that produces

1 | Donald | 37 | Sidney
2 | Janice | 54 | London
3 | Alice  | 44 | California

ID is incrementing i++. The 'nosort' works fine, I cannot click the #. However, when I click Name for example, the following happens.

3 | Alice  | 44 | California
1 | Donald | 37 | Sidney
2 | Janice | 54 | London

As you can see, the # "changes". I want the # column to be static, only displaying the position so it won't change when I sort by name or age for example. How can I achieve this?

This discussion has been closed.