def info_to_context(info):
    """
    Convert a CMGroup's ``info`` into a context for HTML templating.

    Use some sensible defaults for ordering items.
    """
    top_keys = ['notes', 'method_doc', 'sql']
    more_keys = [key for key in info.keys() if key not in top_keys]
    ordered_keys = top_keys + sorted(more_keys)
    ret = []
    for item in ordered_keys:
        if item in info and info[item]:  # Value is not blank
            ret.append({'key': item, 'value': info[item]})
    return ret