Hello @Keshav Prasad and welcome to Microsoft Q&A.
For Copy Activity there are no controls over the order. However, since the out-of-order must be caused by parallelism, reducing the parallelism to 1 (so there is only 1 writer) may reduce the shuffling. This could help with one part of the ordering.
I have not had cause to thoroughly explore the ordering behavior before, but I am aware there are two parts of this ordering to be aware of:
- order of files read
- order of rows within files
The combinations can give rise to multiple types of dis-order I explore below
Suppose we have files A, B, C, each having their own rows 1,2,3. Below I will illustrate possible dis-orders. Which do you see?
File ordering disorder, but row order good. expecting in order A,B,C but getting BAC
B1
B2
B3
A1
A2
A3
C1
C2
C3
File ordering ok, but row dis-order
A1
A3
A2
B3
B1
B2
C2
C1
C3
File interleaving but preserving in-file row ordering
A1
B1
C1
A2
A3
C2
B2
B3
C3
For Data Flow, there is more control, if you have an index or ID column to sort by.