Electron attracting substituents like $- X $ or $-NO_2$ increase the acidity of phenol and eiectron releasing substituents like $- CH_3$ decrease the acidity. So, o-nitrophenol is the strongest acid in the given compounds. The correct order of acidity is o-nitrophenol > p-chlorophenol > phenol > p-cresol