I will do this for one scenario and may be someone else can generalize this.
Suppose $n = 5$ and $x_1 < x_2 < x_3 < 0 < x_4 < x_5$
We will compute the sum in three parts. First with the negative x terms only $y_1$, the positive x terms only $y_2$ and then the cross term product $y_3$.
$y_1 = x_1x_2(L_2 - L_1) + x_1x_3(L_3 - L_1) + x_2x_3(L_3-L_2)$
$y_2 = x_4x_5(L_5 - L_4)$
$y_3 = x_1x_4(L_4 - L_1) + x_1x_5(L_5 - L_1) + x_2x_4(L_4 - L_1) + x_2x_5(L_5 - L_1) + x_3x_4(L_4 - L_1) + x_3x_5(L_5 - L_1)$
We will now use the fact for example: $L_3 - L_1 = L_3 - L_2 + L_2 - L_1$
Rewriting, we get
$y_1 = (x_1x_2(L_2 - L_1) + x_1x_3(L_3 - L_2) + x_1x_3(L_2 - L_1)+x_2x_3(L_3-L_2))$
$y_2 = (x_4x_5(L_5 - L_4))$
$y_3 = x_1x_4(L_4 - L_3) + x_1x_4(L_3 - L_2) + x_1x_4(L_2 - L_1) + x_1x_5(L_5 - L_4) + x_1x_5(L_4 - L_3) + x_1x_5(L_3 - L_2) + x_1x_5(L_2- L_1) + x_2x_4(L_4 - L_3) + x_2x_4(L_3 - L_2) + x_2x_4(L_2 - L_1) + x_2x_5(L_5 - L_4) + x_2x_5(L_4 - L_3) + x_2x_5(L_3 - L_2) + x_2x_5(L_2- L_1) + x_3x_4(L_4 - L_3) + x_3x_4(L_3 - L_2) + x_3x_4(L_2 - L_1) + x_3x_5(L_5 - L_4) + x_3x_5(L_4 - L_3) + x_3x_5(L_3 - L_2) + x_3x_5(L_2- L_1)$
Adding $y_1, y_2, y_3$ and grouping by $L_j - L_i$, we get:
$[(L_2-L_1)(x_1x_2 + x_1x_3 + x_1x_4 + x_1x_5 +x_2x_4 + x_2x_5 + x_3x_4 + x_3x_5)] + [(L_3-L_2)(x_1x_3 + x_2x_3 + x_1x_4 + x_1x_5 + x_2x_4 + x_2x_5 + x_3x_5 + x_4x_5] +
[(L_4 - L_3)(x_1x_4 + x_1x_5 + x_2x_4 + x_2x_5 + x_3x_4 + x_3x_5] +
[(L_5 - L_4)(x_4x_5 + x_1x_5 + x_2x_5 + x_3x_5)]$
$ = [(L_2-L_1)(x_1(x_2 + x_3 + x_4 + x_5) + (x_2 + x_3)(x_4 + x_5)] +
[(L_3 - L_2)(x_1x_2 + x_2x_3 + (x_1+x_2+x_3)(x_4+x_5))]+
[(L_4-L_3)((x_1+x_2+x_3)(x_4+x_5))]+
[(L_5-L_4)(x_1 + x_2 + x_3 + x_4)x_5]$
$ = [(L_2-L_1)(-x_1^2 -(x_2 + x_3)(x_1+x_2+x_3)] +
[(L_3 - L_2)(x_1x_2 + x_2x_3 - (x_1+x_2+x_3)^2)]+
[(L_4-L_3)(-(x_1+x_2+x_3)^2]+
[(L_5-L_4)(-x_5^2)]$
where each term is negative (and we have used $x_4 + x_5 = -(x_1 + x_2 + x_3)$). We could likely extend this logic to $n$ terms.