That is the very simplistic explanation for prices that is great when talking to those that don't work in the industry, but in reality the impact of congestion and losses also factors into the prices as well as reserves in most markets (sometimes the impact is huge).
Also, the adding up of offers from cheapest to most expensive doesn't actually happen. In reality, there is complex OR software running an optimization algorithm behind the scenes. I fully agree though that what you're saying is fine from a conceptual point of view. This is how it was done a long time ago btw, but that was indeed long ago. I'm talking about the US markets btw... I'm sure some place in the world still uses the method you refer too.