def module_functions(modulestr):
    """ Return ordered dictionary of all functions declared in module """

    funcs = dict(inspect.getmembers(import_module(modulestr),
                 inspect.isfunction))

    return OrderedDict(sorted(funcs.items(), key=lambda f: f[0]))
Return ordered dictionary of all functions declared in module