demands ordered by their rank
merge