Sylius/Sylius — pull request #843 by Richtermeister (2014-01-15 08:54:31+00:00)
Title: Fix order sorting to mitigate incorrect order number generation.

See https://github.com/Sylius/Sylius/pull/631

The issue @jeremyFreeAgent discovered is very real and will affect production sites. This PR here helps, but only to the extent that conflicting orders would have to be placed in the same second to cause a collision (which is still quite possible for high-volume sites). Better ideas are very welcome..

Also, there is still the issue of a race-condition with more than one user checking out at the same time. We will need a way to issue a table lock.