Skip to content

[Table] Sort example incorrectly sorts JSON parsed string #19444

@cik10p

Description

@cik10p

Hello,

In my example here: https://stackblitz.com/edit/angular-92pdva-pkkzwk?file=app%2Ftable-sorting-example.ts

I am trying to parse a JSON string, and load it into Element data array.
I also adjusted Element interface properties and data table in the template file accordingly.

For some reason Table is not sorting "Title" column correctly. After sorting "Title" column in asc. order, I would expect "a first record" to be on the top.

Any idea why this happens?

Metadata

Metadata

Assignees

Labels

P5The team acknowledges the request but does not plan to address it, it remains open for discussionarea: material/tabledocsThis issue is related to documentation

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions