Compares two strings and returns an integer that reflects the comparison.