compareText
compareText(x, y)
Compare two strings lexically. Comparison is case sensitive. Returns 1 when x > y, -1 when x < y, and 0 when x == y.
Try it yourself:
$1 | compareText("B", "A")
| |
$2 | compareText("A", "B")
| |
$3 | compareText("A", "A")
| |
$4 | compareText("2", "10")
| |
$5 | compare("2", "10")
| |
$6 | compare(2, 10)
| |
$7 | compareNatural("2", "10")
| |
$8 | compareText("B", ["A", "B", "C"])
|
See also:
All functions