In maths olympiads, I frequently encounter situations where I have two compare two expressions $a_{1}b_{1}c_{1}...z_{1}$ and $a_{2}b_{2}c_{2}...z_{2}$ where $a_{1} + b_{1} + c_{1} + ... + z_{1} = a_{2} + b_{2} + c_{2} + ... +z_{2}$. We assume that $a_{1} < b_{1} < c_{1}...< z_{1}$ and $a_{2} < b_{2} < c_{2}...< z_{2}$ .
In the two variable case, it is quite simple:
$a_{1}b_{1} < a_{2}b_{2}$ if and only if $a_{1} < a_{2} < b_{2} < b_{1}$.
What about the three variable case ? When does $a_{1}b_{1}c_{1} < a_{2}b_{2}c_{2}$ hold?
Is this generalisable for the nth case? Is there a theorem that I can quote?
In this question I am only concerned with positive real numbers, but results about positive and negative numbers are welcome too.