The sine(hyperbolic)-Gordon hierarchy is shown to be the extension of the modified Korteweg-de Vries (MKdV) hierarchy in the integrodifferential algebra extending the standard differential algebra by means of one antiderivative. The characterization by vanishing residues of the MKdV hierarchy yields the same characterization of the sine(hyperbolic)-Gordon hierarchy in the integrodifferential algebra.