The pyramid of energy for any ecosystem (desert, forest, river, pond, etc.) is always upright, because energy is transferred from producers to herbivores to carnivores and finally to top carnivores. With every transfer, a certain amount of energy is lost in form of heat or radiation. Thus, in all ecosystems, the energy value decreases and finally it is completely used up by the top carnivores.