Skip to main content

Sorts After (]])

Tests whether the left operand sorts after the right operand in numeric subscript collation sequence.

Details

The Sorts After operator tests whether the left operand sorts after the right operand in numeric subscript collation sequence. In numeric collation sequence, the null string collates first, followed by canonical numbers in numeric order with negative numbers first, zero next, and positive numbers, followed lastly by nonnumeric values.

The Sorts After operator returns a TRUE (1) if the first operand sorts after the second and a FALSE (0) if the first operand does not sort after the second. For example:

 WRITE 122]]2

returns TRUE (1).

 WRITE "LAMPOON"]]"LAMP"

returns TRUE (1).

FeedbackOpens in a new tab