You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
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: