Here is an array configuration I am working with:
const arr = [
[500, 'Foo'],
[600, 'bar'],
[700, 'Baz'],
];
I am looking to reorganize this arr
in alphabetical order based on the second element within each nested array, like so:
[
[600, 'bar'],
[700, 'Baz'],
[500, 'Foo'],
]
It's important to note that the sorting should be case insensitive. Additionally, I'm open to using lodash utilities for assistance!