Comparison theorems for third order differential equations