Your algorithm is somewhat different from the OP's in that you do not sort cyclic rotations at all, only the variable length endings of the text.
In reply to Re^2: Is it possible to make reference to substrings and sort them?
by hdb
in thread Is it possible to make reference to substrings and sort them?
by spooknick
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |