Closed
Description
Reproduction
[edit, thanks @jelbourn]
https://stackblitz.com/edit/angular-xpwhup?file=src/app/table-sorting-example.ts
Expected Behavior
The sorting of strings should work as one expects when values are strings.
Actual Behavior
The sortingDataAccessor won't sort a string column correctly if one or more records contain a number only eg '1'.
Ex: ['One' ,'2', 'Three']
Suggested change
Use typeof value === 'number' instead of _isNumberValue perhaps, or something more elaborate?
Environment
- Angular: 10
- CDK/Material:10