The order of acidity is as follows:
2,4,6-trinitrophenol>3,5-dinitrophenol>phenol>4-methylphenol.
The nitro groups on the phenol ring increase the electron-withdrawing effect, making the phenol more acidic. 2,4,6-Trinitrophenol has three nitro groups, making it the most acidic, while 4-methylphenol is the least acidic due to the electron-donating nature of the methyl group.