sort on both complex and chain to enable starting multiple processes on the same model