From 95a9c26a9f2e09e690e935ffd7322f39c340dea8 Mon Sep 17 00:00:00 2001 From: Sahil More Date: Thu, 26 Aug 2021 13:31:15 +0530 Subject: [PATCH] fix(material/table): Sorting of a string column/property breaks if one record contains a number only If the number is a string and in between strings we treat it as a number and group it at the start/end of the table based on it's ascending or descending. I have fixed the issue in my commit here and I think it will work properly. Fixes #20140 --- src/material/table/table-data-source.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/material/table/table-data-source.ts b/src/material/table/table-data-source.ts index 6a69ef49fcd5..167de0cbd807 100644 --- a/src/material/table/table-data-source.ts +++ b/src/material/table/table-data-source.ts @@ -183,6 +183,8 @@ export class _MatTableDataSource