Docs
chromia.com

FUNCTION

text.compare_to

pure function compare_to(other: text): integer

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