What is the meaning of [Upset the apple-cart]

To ‘upset the apple-cart’ is to cause upset – to create a difficulty.

This allusory phrase is first recorded by Jeremy Belknap in The History of New Hampshire, 1788:

“Adams had almost overset the apple-cart by intruding an amendment of his own fabrication on the morning of the day of ratification” [of the Constitution].