-
Notifications
You must be signed in to change notification settings - Fork 7k
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 does not accept iteratee path arrays #4438
Labels
Comments
This was referenced Aug 30, 2019
Closed
Closed
Moved to #4453. |
falsyvalues
added a commit
to falsyvalues/lodash
that referenced
this issue
Oct 10, 2019
jdalton
pushed a commit
that referenced
this issue
Oct 10, 2019
falsyvalues
added a commit
to falsyvalues/lodash
that referenced
this issue
Oct 17, 2019
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't know if this is intended behavior, but
_.orderBy
does not work with path arrays.An example I created using the REPL in the docs:
REPL link: https://runkit.com/samuelcolburn/5d6023bcb4e038001412b42b
Expected Behavior
That a path array
['address', 'zipCode']
is treated the same as a dot-delimited path string'address.zipCode'
.Actual Behavior
'address.zipCode'
works as expected.['address', 'zipCode']
is not sorted at all.My apologies if this is intended behavior or if all iteratees are treated this way, it was my assumption based on functions like
_.get()
that these two types of paths were treated equivalently.The text was updated successfully, but these errors were encountered: