Democracy outranks human rights. The human rights were put there in the first place by the democracy, and can be amended by it as well. It completely outranks them, unless you believe they are “god-given” or something.
Just have to chime in here.
Human rights are fundamental and intrinsic. They can't be "outranked."
Legislating for them and enforcing them is due to institutions such as governments (and in an international context the ICC if, say, the government has become genocidal).