Conversely, by symmetry, if the walls were increased in a reverse manner, the temperature would remain constant but the pressure would decrease. This is a source of confusion among even professionals. You cannot, in practice, contract the dimensions of a container in so short a time interval as exists between individual molecule-wall contacts. Therefore Boyle's observations seem to suggest a direct logical relationship. The true relationship is indirect.
Energy has nothing logically to do with order-disorder.
The relationship is entirely technical. So when an object drops down a gravitational gradient it loses energy when heat from its inelastic collision with the Earth is vented into space. If the improbable happened in this instance, matter heats up as a logically necessary concomittant. NOT an increase in disorder as a confused scientific community would have us believe. The idea that it is disorder stems from the confusion over logical-technical details.