Fix various bugs
Previously, rows tagged with 'no-sort' were pushed to the top of the table when sorting: 3 2 no-sort 1 => no-sort 1 2 3 Now, these rows are kept at their original position: => 1 2 no-sort 3
- Recognize both "€5" and "5€" - Also recognize if space in between: "€ 5", "5 €", "$5"
Always look at the first row of data when guessing the data type. If the table doesn't have a <thead> element, assume that the first <tr> is a header and skip it.
Check for dates by attempting to parse them
use module.exports where available
Add ’main‘ field to package.json (to make use of ender.js’ package management capabilities)
- Combine some vars into single ones - Remove unused firstRow in sortTable - Remove `k` variable in sortTable, and use `i` instead