check a text is before or after another text

Useful to check text order or sorting in a web table
This block requires comments, its not obvious what's happening here ;)