Added code to support sunc order based on THREAD ids (needed for general concatenating protocol)