Compare text
- Input:
text1: - String first text text2: - String second text caseSensitive: - Bool match case natural: - Bool natural order comparison reverseCase: - Bool capital letters return greater result - Output:
- Integer
- 0 - texts are identical
1 - first one is greater than the second
-1 - first one is lesser than the second - Example:
_value = call loadFile Format ["\:string compare text1:%1text2:%2", "Hello", "World!"]
- Description:
- Compares two strings with each other according to the lexicographical order. Alternatively use natural: to compare in a natural order. Option reverseCase: use in combination with caseSensitive:.
- Purpose:
- For sorting strings alphabetically.
- Version:
- 1.1
- Demo:
- Download
- Source:
- View