The localeCompare() of a String returns a 1 or 0 indicating whether the string comes before, after, or is the same as the given string in sort order.

    
    const cLocalCompareB = 'c'.localeCompare('b');

    // 'b' is before 'c' = 1
    console.log(cLocalCompareB);
    // 1