order local FUNC syms before SECTION syms

Order LOCAL FUNC syms before LOCAL SECTION syms.  Then refactor because we are copy/pasting a that code block over and over

and over.

Fixes issue #53 for real this time.