@Manoj
I think as soon as fetch completed then FetchSFTP processor outputs the flowfile, in your case file_B.xml fetch finished first that file_A.xml fetch.
You can use EnforceOrder processor after FetchSFTP processor to keep your source orders as is.
Refer to this link for more details regards to usage/configuring EnforceOrder processor.
-
If the Answer helped to resolve your issue, Click on Accept button below to accept the answer, That would be great help to Community users to find solution quickly for these kind of issues.