function order

Is there a way to re-order functions in the main.lua file?
I have tried pre-declaring them, but can’t get it to work.
so if I have this function, I want the function it calls, i.e. funcB to be perhaps later in the file, not necessarily before funcA. Hope this is clear.
local function funcA()
local z = funcB()
end

– i want to put funcB here [import]uid: 49842 topic_id: 10777 reply_id: 310777[/import]

This article about forward referencing written by Jon Beebe of Beebe Games fame might help.
http://jonbeebe.net/post/3789692325/forward-referencing-will-save-you
[import]uid: 27965 topic_id: 10777 reply_id: 39162[/import]

thanks!
that’s exactly what I was looking for. Had tried a few variations but none had worked [import]uid: 49842 topic_id: 10777 reply_id: 39163[/import]