10000 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
Open
@mebibou

Description

@mebibou

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0