You can check the output in a machine with a sort
that supports it, and in a machine with a sort
that doesn't. Comparing them may help you understand whether they support the option or not.
You can also check the return code of each one, running echo $?
after the command. If they differ, you can use that on your favor.