add test to demonstrate reordering bug
use reordering algorithm of phpcr-utils to fix this issue (and drop a hairy algo from the codebase)
Merge remote-tracking branch 'origin/master' into reorder-bug
cleanups
Merge pull request #249 from doctrine/reorder-bug

fix reordering bug