add priority sort