Objects inside arrays still need sorting
nyurik opened this issue · 1 comments
nyurik commented
I had to write my own sorter, but would be great if you added this to your code - an ability to sort objects inside arrays, without changing the position in the arrays themselves.
{
b: 1
a: [ { f: 10, e: 11 }, { h: 20, g: 21 }]
}
after sort:
{
a: [ { e: 11, f: 10 }, { g: 21, h: 20 }]
b: 1
}
sindresorhus commented
Agreed. Pull request welcome :)