Skip to content

Commit 16b7b6a

Browse files
authored
fix(material/table): sort correctly
Sort correctly when column information contains string and number values Fixes angular#20140
1 parent e4102ea commit 16b7b6a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/material/table/table-data-source.spec.ts

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ describe('MatTableDataSource', () => {
4747
it('should be able to correctly sort an array of string', () => {
4848
testSortWithValues(['apples', 'bananas', 'cherries', 'lemons', 'strawberries']);
4949
});
50+
51+
it('should be able to correctly sort an array of strings and numbers', () => {
52+
testSortWithValues([3, 'one', 'two', 'four', 'five']);
53+
});
5054
});
5155
});
5256

0 commit comments

Comments
 (0)