Skip to content

[Sortable] Sorting is always done case sensitive - add an option to make sort case insensitive #9205

@Cyberdada

Description

@Cyberdada

Bug, feature request, or proposal:

Bug, feature request, or proposal - I guess all of the above...

What is the expected behavior?

If a flag existed that allowed you to set sort as case insensitive , a case insensitive sort would work like this:
A
b
C

What is the current behavior?

It works like this:
A
C
b

What are the steps to reproduce?

use
https://stackblitz.com/angular/dmykovoxxbv?file=app%2Ftable-sorting-example.ts
and change some of the names intial letter to lowercase

What is the use-case or motivation for changing an existing behavior?

I think more people than me need it :)

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

Angular: 5.1.0
Material: 5.0.1
Browser: Chrome
TYpescript: 2.6.2

Is there anything else we should know?

Metadata

Metadata

Assignees

Labels

needs: discussionFurther discussion with the team is needed before proceeding

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions