Here is a reformulation of Rudin PMA $4.31$ remark:
Let $a$ and $b$ be two real numbers such that $a < b$, let $E$ be any countable subset of the open interval $(a,b)$, and let the elements of $E$ be arranged in a sequence $$x_1, x_2, x_3, \ldots.$$ Now let $\{c_n\}$ be any sequence of positive real numbers such that the series $\sum c_n$ converges. Now define the function $f \colon (a,b) \to \mathbb{R}$ as follows: $$f(x) \colon= \sum_{x_n < x} c_n \ \ \ \ \text{ for all } x \in (a,b).$$ The summation is to be understood as follows: Sum over those indices $n$ for which $x_n < x$.
I am wondering whether the $x_1, x_2,x_3,...$ from $E$ are necessarily ordered or not ?
I ask because, next in the remark, Rudin asserts that "$f(x_n +)-f(x_n -) = c_n$". However (and even though I haven't yet found a proof of this result), when drawing a sketch I've noticed that this assertion holds, only if $x_n$ is monotonically increasing (that is to say, if the elements of $E$ are arranged in $x_n$ in an ordered way).
When they are ordered in a reversed order ($(x_1,x_2,x_3,...) = (0,-1,-2,...)$ for example) I found (again with my graph) that $$f(x_n -) - f(x_n +)= c_{n+1}$$
hold instead.
Am I completely wrong, or Rudin is indeed considering only the monotonically increasing $x_n$ sequences ?