javve / list.js

The perfect library for adding search, sort, filters and flexibility to tables, lists and various HTML elements. Built to be invisible and work on existing HTML.
https://listjs.com
MIT License
11.2k stars 898 forks source link

Detect numbers when sorting #779

Open nwoltman opened 1 day ago

nwoltman commented 1 day ago

Fix https://github.com/javve/list.js/issues/562 by checking if the values being sorted are both numbers and sorting them as numbers if they are.

codecov-commenter commented 1 day ago

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 93.60%. Comparing base (d32c85d) to head (5857111). Report is 4 commits behind head on master.

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #779 +/- ## ========================================== + Coverage 93.54% 93.60% +0.05% ========================================== Files 19 19 Lines 837 844 +7 Branches 199 201 +2 ========================================== + Hits 783 790 +7 Misses 38 38 Partials 16 16 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.