derange
v.
1776, "throw into confusion," from French déranger, from Old French desrengier "disarrange, throw into disorder," from des- "do the opposite of" (see dis-) + Old French rengier (Modern French ranger) "to put into line," from reng "line, row," from a Germanic source (see rank, n.). Mental sense first recorded c.1790.