Suppose I have two commuting Hermitian matrices $A$ and $B$: $[A,B] = 0$. I can always find a unitary operator $U$ such that simultaneously diagonalize both matrices, i.e.,
\begin{equation} U^* A U = D_A, \quad U^* B U = D_B, \end{equation} where $D_A$ and $D_B$ are corresponding diagonal matrices.
My question is: can we always say that the orderings of eigenvalues of $D_A$ and $D_B$ are the same, e.g., eigenvalues of both $D_A$ and $D_B$ are in descending order ($\lambda_{a_1} \geq \cdots \geq \lambda_{a_n}$ and $\lambda_{b_1} \geq \cdots \geq \lambda_{b_n}$)?
If $A$ and $B$ have the same eigenvalues, then you are asking for $U^*AU=U^*BU$, which implies $A=B$. So in general you can't do what you are asking about.