Changing the declaration order to be different from descending order

To ensure the audience doesn't start suspecting tricks in the definition of compare