On , I learnt ...

The order of permissions matters with chmod

As in these two commands behave differently:

$ chmod -R g+X,g-wx .  # DOESN'T set group executable bit on folders
$ chmod -R g-wx,g+X .  # DOES set group executable bit on folders