You can define sort keys on each of the input and output data sets of an operator.
Setting sort information directs InfoSphere® DataStage® to insert sort components in a data flow so that your sorting requirements are met. InfoSphere DataStage records this information for data sets that have the preserve partitioning option set.
APT_Operator::setInputSortKeys(APT_PropertyList keys, int input)
APT_PropertyList APT_Operator::getInputSortKeys(int input)
APT_Operator::setOutputSortKeys(APT_PropertyList keys, int output)
APT_PropertyList APT_Operator::getOutputSortKeys(int output)
To disable sort insertion, add the global option -nosortinsertion to your osh command line, or specify the environment variable APT_NO_SORT_INSERTION.