This is something I have suspected. Trains aren't derailing from outside sabotage. They are derailing from piss poor practices of the train companies. They are sabotaging themselves.
The presence of one does not deny the existence of the other. That said, any kid who had enough model train cars, or a pet or sibling who grabbed the last car in the train knows it's going to derail.
Common sense would dictate that the empties should be at the back of the train.
Considering terrain, and that different parts of a train will be in tension or compression as the train passes through transitions in grade, you would think someone would have figured out how to independently brake cars as needed, even if it was run by a computer. Granted, the more subsystems involved, the more possible points of failure, and the greater the cost...which appears to be why these trains are this long in the first place. Unlike unit trains, one cargo, one type of car, one train, trains with a mix of cars and cargoes will be far more complex in their internal interactions as they pass through terrain.