'Output a category-ordered list. The input are the
pre-loaded help files for commands and database-helpfiles
respectively.  You can override this method to return a
custom display of the list of commands and topics.'

@staticmethod
def format_help_list(hdict_cmds, hdict_db):

    string = ''
    if (hdict_cmds and any(hdict_cmds.values())):
        string += ((('\n' + _SEP) + '\n            |CCommand    help    entries|n\n') + _SEP)
        for category in sorted(hdict_cmds.keys()):
            string += ('\n        |w%s|n:\n' % str(category).title())
            string += (('|G' + fill('|C,    |G'.join(sorted(hdict_cmds[category])))) + '|n')
    if (hdict_db and any(hdict_db.values())):
        string += ((('\n\n' + _SEP) + '\n\r        |COther    help    entries|n\n') + _SEP)
        for category in sorted(hdict_db.keys()):
            string += ('\n\r        |w%s|n:\n' % str(category).title())
            string += (('|G' + fill(',    '.join(sorted([str(topic) for topic in hdict_db[category]])))) + '|n')
    return string
