If the first argument of compare() is a string, use localeCompare() instead