Closed dumtux closed 1 year ago
That's what the data-sort attribute is for:
...
<td>Party B</td>
<td data-sort="1228.8">1.2k</td>
...
<td>Party D</td>
<td data-sort="2936012.8">2.8M</td>
...
Are you the one generating the html table? Or do you need to solve this with javascript only?
Thank you. I generate the table from JSON data, thus, this can solve my problem quickly.
When I have a table like this,
Is there a way to make sorting correct.y?