bootstrap-vue: bug: table sort error when the number is negative, and the value type I give is `Number`
bug: table sort error when the number is negative, and the value type I give is Number
example:
- -0.1
- -0.2
- -0.3
- 0.1
- 0.2
- 0.3
The negative numbers above are sorted incorrectly.
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 15 (10 by maintainers)
From my devtools console on chrome:

See details at MDN
String.prototype.localeCompare(): https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare