Acidic strength of organic acids. Substituted PhCOOH acids
The ortho substituted benzoic acid is most acidic, followed by the meta substituted and finally para substituted benzoic acid.

The methyl group, when at ortho position, causes steric inhibition of resonance, which essentially means that the $\ce{-COOH}$ group goes out of the plane of the benzene ring (due to steric hindrance from the $\ce{-CH3}$ group). Due to this, the benzene's $\pi$ electrons can no longer be transferred to the central carbon of the $\ce{-COOH}$ group by resonance, hence increasing the positive charge on it. This makes the hydrogen of the $\ce{-COOH}$ group more acidic.

When the methyl group is on meta position, it operates by +I, thus reducing its acidity. When on para position, it operates by both +I and +R (actually +H, which means hyperconjugation effect), hence decreasing the acidic strength even more.