-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Description
Here's my code to sort a column of float values. It continues to be sorted as if they're strings though. The table simply has <thead>...<th>amount</th></thead>, no class or id or anything.
Thanks in advance for any insight.
$(document).ready(function() {
$('table').tablesort()
$('thead th.amount').data(
'sortBy',
function(th, td, tablesort) {
return parseFloat(td.text());
}
);
})
Metadata
Metadata
Assignees
Labels
No labels