refactor: reorder function definitions in base.lua.

* lib/std/base.lua: Rather than mostly random order, subject to
interdepencies, put functions in asciibetical order as far as
possible while avoiding forward declarations.
* HACKING: Update.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>