Occasionally the trades are delivered out of order, this allows us to reassemble them in the correct order