Let $\{X_i\}$ be a sequence sequence of nonnegative r.v. which has the lattice property. This implies that there is a sequence of indices $\{i_n\}$ so that $\{X_{i_n}\}$ is nondecreasing and $\operatorname{esssup}_{i\in I}X_i= \sup_n{X_{i_n}}= \lim_nX_{i_n} $ a.s. Note that the set $I$ is general an therefore it could be uncountable.
I would like to show $E[\operatorname{esssup}_{i\in I}X_i]=\sup_{i\in I}E[X_i]$.
I tried to apply monotone convergence together with the existence of a sequence $\{i_n\}$:
$$E[\operatorname{esssup}_{i\in I}X_i] = E[\lim_nX_{i_n}]= \lim_nE[X_{i_n}]\le \sup_{i\in I}E[X_i]$$.
However, I'm struggling with the other inequality mainly for two reason: a priori $\sup_{i\in I}X_i \ge \sup_n X_{i_n}$ and how to show $ \lim_nE[X_{i_n}]\ge \sup_{i\in I}E[X_i]$