late 14c., "to draw up a line of battle," from O.Fr. arrangier, from a- "to" + rangier "set in a row" (Mod.Fr. ranger), from rang "rank," from Frank. *hring. A rare word until the meaning generalized to "to place things in order" c.1780-1800. Musical sense of "adapt for other instruments or voices" is from 1808.