8000 How to orderBy and ignore case · Issue #21 · a8m/ng-pipes · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

How to orderBy and ignore case #21

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

Open
mebibou opened this issue Jan 26, 2018 · 1 comment
Open

How to orderBy and ignore case #21

mebibou opened this issue Jan 26, 2018 · 1 comment

Comments

@mebibou
Copy link
mebibou commented Jan 26, 2018

Using the current orderBy pipe, if you collection looks like:

[{
  name: 'a'
}, {
  name: 'b'
}, {
  name: 'A'
}, {
  name: 'B'
}]

then the sorted result by name will be:

[{
  name: 'A'
}, {
  name: 'B'
}, {
  name: 'a'
}, {
  name: 'b'
}]

How to avoid this without adding an extra lowered case property?

@SteveVanOpstal
Copy link
Collaborator

This seems like correct behaviour. What are you trying to avoid?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0