In our dojos, we do formal line up sorted by grades (we wear colored belts, so it is easy) at the beginning and the end. The yudansha also sort by grade. There is no sorting by seniority.
During practice, everyone is expected to train with everybody. for watching the demonstration, we do kind of a loose row where rank doesn't matter.
Interesting, how this varies throughout the various Aikido dojos.