Group order matters affects output

The answer is in the same web page - you can also read this post