Thanks for an informative post, Ludens.
I wonder, however, if a phalanx (Macedonian or Greek) would need to have veteran troops in the front rank too, rather the greenest rookies at the front. Because the front rank is the rank that needs to step off when the phalanx advances (any hesitation in the front rank will disrupt the entire phalanx) - and also, the front rank is the one that needs to dress its line correctly, as all the following files base their spacing off the position of the man in front of them.
I would put veteran soldiers in the front 1 or 2 ranks, then the new recruits, then the rest of the men in ranks of increasing experience, with the oldest and steadiest men (the ones least likely to flee) as a file-closer in the rearmost rank.
Bookmarks