I want to pass a list as a parameter in a function, sort it, and assign it to the original list.
That doesnt work. The list stays unchanged.
So the first say shows the original list.
The first think also shows the original list. Even it should have been changed in the function.
The assignment outside the function works then.
The last say then provides the result I would have expected from the assignment inside the function.
Dont tell me its ugly and I shouldnt do it otherwise. Sure. I am just trying to understand the issue and why assignments of a parameter in a function dont work.