Using standard Lebesgue integration, we can write: \begin{equation} \int_{(a,b)}f'(x) d\lambda = f(b) - f(a) \end{equation}
There's no orientation on the left hand side of the equation, yet on the right we take $f(b) - f(a)$ as opposed to $f(a) - f(b)$.
Due to what exactly is that the case? In what piece is the "orientation" $a \rightarrow b$ encoded?
//
My thoughts: I'd guess it's due to the fact that the derivative is in some sense defined in a slightly arbitrary way - both $\lim \frac{f(x+h)-f(x)}{h}$ and $\lim \frac{f(x)-f(x+h)}{h}$ make sense. But at the same time, it doesn't seem that arbitrary - it's natural to assume that numerator/enumerator order should be preserved, i.e. $\frac{f(x+h) - f(x)}{(x+h) - (x)}$ is the natural choice. So I think I might be missing something.
If you interpret the expression $\int_{(a,b)}f'(x)dx$ as a Lebesgue or Riemann integral, than the integral itself does not depend on orientation, as Deane's answer explains. The derivative $f'$, however, does depend on orientation. There are a few ways of seeing this.
In the difference quotient $\frac{f(x+h)-f(x)}{(x+h)-x}$, the two subtraction operations encode a sense of orientation, but they do not "cancel out". The numerator is a subtraction in the codomain of $f:\mathbb{R}\to\mathbb{R}$, while the denominator is a subtraction in the domain, and we are only concerned with the orientation of the domain here.
Alternately, we can see precisely where orientation is invoked by instead considering a function $f:M\to\mathbb{R}$ where $M$ is a connected Riemannian $1$-manifold (which happens to be $\mathbb{R}$). The Borel measure $\mu$ compatible with the metric (such as the Lebesgue measure on $\mathbb{R}$) can be defined without choosing an orientation, but this only allows us to integrate functions $M\to\mathbb{R}$. The derivative $df:M\to T^*M$ is a $1$-form on $M$ and there are two possible choices of trivialization $T^*M\to M\times\mathbb{R}$ compatible with the metric. There is a standard choice for $M=\mathbb{R}$, but without such a choice (i.e. an orientation) we cannot view $f'$ as an integrable function.