Ensure relative ordering is correct when 'mergemode => insert'. fixes #2