Sentinel mosaic order

When mosaiking Sentinel (1 or 2) imagery is there ‘an order of mosaic’ when there are over lapping areas of imagery?

In other words how is it decided which image which over lap in the mosaic?