Stage order, disorder, and phase transitions in intercalation compounds