JavaScript custom .sort() of double array object using .localeCompare() not working
I was working on a solution to a leetcode problem (https://leetcode.com/problems/sender-with-largest-word-count/) when I hit a scenario I spent hours trying to debug and still can't figure out what's going on. To simplify, given an object: let items = [ […