Use dx_max_sort_old and not dx_max_sort when checking whether cells have been sorted in DOPAIR1_BRANCH()