Differential equations and Sobolev orthogonality