Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c375ce9

Browse files
committed
fix(table): use original value for fallback when number parsing fails in defaultSortCompare()
1 parent dafeed6 commit c375ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/table/helpers/default-sort-compare.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const normalizeValue = value => {
88
return ''
99
}
1010
if (isNumeric(value)) {
11-
return toFloat(value)
11+
return toFloat(value, value)
1212
}
1313
return value
1414
}

0 commit comments

Comments
 (0)