Acidic strength of organic compounds can be determine on the basis of conjugate acid-base pairs.
AcidH2O+H2O⟶H3O++Conjugate baseOH−
Conjugate base strength increase with increasing negative charge at oxygen.
Order of basic strength
Negative charge at oxygen atom increases due to electron releasing nature of methyl or ethyl group. Order of acid strength is inverse of basic strength.