LeeWannacott / table-sort-js

HTML table sorting with no dependencies.
https://cdn.jsdelivr.net/npm/table-sort-js@latest/table-sort.js
MIT License
76 stars 26 forks source link

Feature: Handle currency and percentiles for numeric-sort <th> class. #97

Closed LeeWannacott closed 7 months ago

LeeWannacott commented 1 year ago

numeric-sort currently handles decimals and negative numbers but wont work for currency. Modify numeric-sort to also allow inferring and sorting of currency such as $69, $60.69, ($69.23), -$56 etc. Also other currency signs such as pounds, euro etc. Percentages are also something that can be represented as decimals as well, so we should handle that as well e.g ( 69.1%, 69.15%, etc.)

LeeWannacott commented 1 year ago

Make sure this class also handles numbers with commas in them. (i don't think it does). Opened separate issue for this https://github.com/LeeWannacott/table-sort-js/issues/109

LeeWannacott commented 1 year ago

https://github.com/LeeWannacott/table-sort-js/issues/109 completed

LeeWannacott commented 7 months ago

Done in https://github.com/LeeWannacott/table-sort-js/releases/tag/v1.21.0