hadley/ggplot2 — comment on commit 89906e6f8196df0df4b0b4b21dcffb441cdfab23
File:  line 0
By kohske:

I think data need to be sorted along the group.

Please see this commit. https://github.com/kohske/ggplot2/commit/ae7e66a9340fda9c4d9dc797b5ef493b102b5147
And the SO question: http://stackoverflow.com/questions/9161896/mismatching-colours-on-two-layers-ggplot2-v0-9

Now I have no time to write test case for this ...