Skip to content

fix(material/table): Sorting of a string column/property breaks if one record contains a number only #23453

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

sahilmore-git
Copy link

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

…e 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 angular#20140
@google-cla google-cla bot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Aug 26, 2021
@sahilmore-git
Copy link
Author

@andrewseguin thoughts?

@andrewseguin andrewseguin removed the cla: yes PR author has agreed to Google's Contributor License Agreement label Dec 28, 2021
@andrewseguin
Copy link
Contributor

Can you create a test that demonstrates what this change is fixing and to prevent regressions

@andrewseguin andrewseguin added the needs: clarification The issue does not contain enough information for the team to determine if it is a real bug label Apr 21, 2022
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Jul 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: clarification The issue does not contain enough information for the team to determine if it is a real bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug(table-data-source): Sorting of a string column/property breaks if one record contains a number only
2 participants