add priority sort to list, class to priority