Some Books Given Different....
In Nomenclature, -COOH is most senior in group.
COOH > SO3H > COOR > COX > CONH2 > CN > NC > CHO > C=O> NH2> ether