(The) Wrong End of the Stick

What does the idiom “(The) Wrong End of the Stick” mean?

Definition:

To have the wrong idea about something

For example:

“I got the wrong end of the stick, so I showed up at the party dressed to the nines when everyone else was informal.”

Notes:

This is often used with “get,” as in the example.