Sorting an array of objects based on 2 conditions is my current challenge
- First, I need to sort by value
- If the names are the same, I want to display them next to each other in ascending order of their values
For a visual example, check out this demo: https://codesandbox.io/s/relaxed-dhawan-sfryng?file=/src/index.js