sorting by [order, input_id], adapter.args on tail end. printing dict with args,stdin,stdout