How to check if a string is greater than another

Greater in terms of what though - Alphabetical order?

You could look into something like this: