add total budget to ordering functions