Should be safe to rewrite this as `return a[0] - b[0] || a[1] - b[1];`.