Command Block arguments for @a, @p are order sensitive
The arguement order under @a and @p and probably @r don't apply if not in a peticular order such as @a[r=100,m=0] won't work as expected with the m argument but @a[m=0,r=100] will.
The arguement order under @a and @p and probably @r don't apply if not in a peticular order such as @a[r=100,m=0] won't work as expected with the m argument but @a[m=0,r=100] will.