Let us consider the structure of respective conjugate bases (carbonions),
EWG (−R) stabilise carbanions but EDG (+R>+I) destabilise carbanions. [EWG: Electron withdrawing group EDG: Electron donating group] A stronger acid produces stable conjugate base. So, the order of acidity will be (i) > (ii) > (iv) > (iii)