It's right the way you have it.
How to know should it arise again. The outermost nut usually has serrations, or a foot (like on a teacup), both of which are for biting into the dropout and resisting slippage.
Also, the cone, lockwasher, and locknut should be together as a sandwich.
Then any added spacers are to provide for the freewheel, and then on the left to add up to the desired axle width.
__________________
FB
Chain-L site
An ounce of diagnosis is worth a pound of cure.
Just because I'm tired of arguing, doesn't mean you're right.
“One accurate measurement is worth a thousand expert opinions” - Adm Grace Murray Hopper - USN
WARNING, I'm from New York. Thin skinned people should maintain safe distance.