Skip to content
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

OrderBy pipe does not order when property is array of strings #174

Open
labenn opened this issue Jun 22, 2020 · 0 comments
Open

OrderBy pipe does not order when property is array of strings #174

labenn opened this issue Jun 22, 2020 · 0 comments

Comments

@labenn
Copy link

labenn commented Jun 22, 2020

[ x ] bug report
[ ] feature request

  • Ngx-pipes version: 2.6.0

Current behavior
Array is not sorted when looking like this:
[
{arrayOfStrings: ['a', 'b']},
{arrayOfStrings: ['b']},
{arrayOfStrings: ['b', 'c']}
]
and used as | sortBy : [arrayOfStrings]

Expected behavior
It should sort similarly to array of numbers which does work. (which sorts by first element in array thx to javascript)

Minimal reproduction of the problem with instructions
https://stackblitz.com/edit/angular-ivy-v3ptad

Please tell us about your environment:
Win10, web browsers Firefox/Chrome

  • Angular version: 8.2.3

  • Node (for AoT issues): node --version = 12.14.1

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

1 participant