We know that as n (principal quantum number) increases, the energy of nth shell increases.
But when we deal with sub-orbitals, 4f has more energy than 6s.
So, 6th shell has more energy than 4th shell, but the sub-orbital 6s ( which is obviously in 6th shell) has less energy compared to 4f ( 4th shell obviously). I am pretty confused.
This confusion arised when I was reading about lanthanide contraction and shielding effect.