Fix order sorting to prevent incorrect order number generation.

See https://github.com/Sylius/Sylius/pull/631
Merge pull request #843 from Richtermeister/fix-order-numbers

Fix order sorting to mitigate incorrect order number generation.