The data transfer transform should be before the distinct_sort query transform.
In the data transfer transform, link to a table in any of the datastores. You can also do a bulk loading (truncate) on Datatransfer transform, there by it will be faster.
Also why you need to sort? This not SCD correct, because i do not see any TC or MO.