LangRef: Move example of function-scope uselistorder to a function

Should make the example added in r216025 a little more clear.
Attempt to keep the Linux build happy in face of my changes. Non-Apple folks, can you confirm that this is good enough to keep things building for you?