3 ms·
The "sorting" aspect of it is wrong, 2.44% is greater than 1.03% but shows up last: http://i.imgur.com/0qmIk3s.png http://i.imgur.com/0qmIk3s.png EDIT: I took
by sehrope 13y ago
The "sorting" aspect of it is wrong, 2.44% is greater than 1.03% but shows up last: http://i.imgur.com/0qmIk3s.png http://i.imgur.com/0qmIk3s.png
EDIT: I took a look at the source. There's an extra "data-" field to use as the value to sort with which is hard coded to "0" for the 2.44% row. This also answers my question of how it was sorting the textual date fields properly (each has the year in that data- field).
- afschwartz 13y agoThis is intentional. Since that is an "Other" category, I elected to force it to the bottom of the sort order by setting `<td data-value="0">` for that column. See: https://github.com/HubSpot/sortable/blob/e07209b89deac83950cd1e83e4f5bc3796449dcf/docs/welcome/index.html#L266 https://github.com/HubSpot/sortable/blob/e07209b89deac83950c...
- deleted 13y ago[deleted]