JSREF

JavaScript String localeCompare()

Compare "ab" with "cd":