FUNCTION
text.compareTo
Deprecated (for removal): Use 'compare_to' instead
Compares this text to another text lexicographically, based on the Unicode value of each character in each text object.
Parameters
- other — the text to compare against this text
Returns
0 if this text and other are equal, a negative integer if lexicographically less than
other, and a positive integer if lexicographically greater than other.
Since
0.9.0
Alias of text.compare_to
© 2026 Chromia