Returns "-1" if string A is sorted before string B.
Returns "0" if string A and string B are equal.
Returns "1" if string A is sorted after string B.
Click the below button for comparing the two strings.