5
It seems to be random or up to the miner from what I can tell.
But to store blocks, one must keep the order of the transactions (in some position column, etc) because regenerating the block for later retrieval requires putting the transactions back in the same order. Is this correct?
1The sequence of blocks is critical (and accommodated as each block is chained to a specific prior block), but the sequence of transactions within a single block is not. – Stephen Gornick – 2012-05-30T07:54:49.157