According to Cahn-Ingold-Prelog sequence rules, the priority of groups is decided by the atomic number of their atoms. When the atom -(which is directly attached to the asymmetric carbon atom) of a group has higher atomic number, then the group gets higher priority. Groups with atoms of comparable atomic number having double or triple bond, have high priority than those have single bond
Hence, the order of priority of groups is
$? OH> ? COOH > ? CHO > ? CH_2OH$