No, both phrases could work but they do really have a slightly different meaning, 'arranged by means that the units are put in a certain order by rank, 'composed of' means that the units are made up of different ranks, different ranks are what make a unit.
For some reason 'arranged by' seems more natural to me but I guess either could work depending on the rest of the context.
|