Reorder joins to put the one used for order by before
Reorder join to get the orderBy related join at first place in the join queue
Merge pull request #523 from akeneo/test/ReorderingJoins

Test/reordering joins