Yes, the Spaniards were behind the Danes and the Swedes, so technichally they were ahead of the Norwegians, I think, assuming the precedence is observed from right to left. That may be because of the precedence accorded to King Juan Carlos.
In the third row, Philippe was ahead of Henri (from right to left; he was the only monarch in uniform without a UK order, so easy to spot), but that may be because Philippe is a king and Henri is a grand duke? But, in that case, shouldn't Naruhito have been moved forward too despite his date of accession?