a8m / a8m/ng-pipes

How to orderBy and ignore case

Open
#21 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
114
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Using the current `orderBy` pipe, if you collection looks like:
```js
[{
name: 'a'
}, {
name: 'b'
}, {
name: 'A'
}, {
name: 'B'
}]
```
then the sorted result by `name` will be:
```js
[{
name: 'A'
}, {
name: 'B'
}, {
name: 'a'
}, {
name: 'b'
}]
```
How to avoid this without adding an extra lowered case property?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.