JavaScript sort array based on subarray value
Now that we had a look at finding the min/max from an array of arrays, let's see how we can go a step further and sort all the items based on a sub-array value.
To sketch the problem, let's say we have the following array of users.
const users = [
...
h.daily-dev-tips.com3 min read