Suppose that $B\sim Beta(j,k)$ with $j,k$ positive integers. I read inside a book that we can represent $B \sim U_{(j)}$, where $U_1, \ldots, U_n$ are iid $Unif(0,1)$ and $n = j+k-1$.
Then I am told that (what I do not understand at all):
$$ -logB \sim X_{(k)} $$
where $X_1, \ldots, X_n$ are iid Expo(1).
The book states that this is "because $-log$ is a decreasing function, so that $U_{(1)}$ corresponds to $X_{(n)}$, $U_{(2)}$ corresponds to $X_{(n-1)}$, etc"
Could anyone shed light on why this is true? Thanks!