Skip to content

Commit 38c714d

Browse files
authored
fix(material/table): Sort correctly angular#20140
Sort correctly when column information has string and numeric values
1 parent b755273 commit 38c714d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ describe('MatTableDataSource', () => {
4747
it('should be able to correctly sort an array of string', () => {
4848
testSortWithValues(['apples', 'bananas', 'cherries', 'lemons', 'strawberries']);
4949
});
50-
50+
5151
it('should be able to correctly sort an array of strings and numbers', () => {
52-
testSortWithValues([3, 'one', 'two', 'four', 'five']);
52+
testSortWithValues(['apples', 'bananas', 'cherries', 'lemons', 'strawberries', 3]);
5353
});
5454
});
5555
});

0 commit comments

Comments
 (0)