@click.command()
@click.option('--sortby',
              help='Column to sort by',
              type=click.Choice(['id',
                                 'datacenter',
                                 'host',
                                 'cores',
                                 'memory',
                                 'primary_ip',
                                 'backend_ip']))
@environment.pass_env
def cli(env, sortby):

    manager = SoftLayer.CDNManager(env.client)
    accounts = manager.list_accounts()

    table = formatting.Table(['id',
                              'account_name',
                              'type',
                              'created',
                              'notes'])
    for account in accounts:
        table.add_row([
            account['id'],
            account['cdnAccountName'],
            account['cdnSolutionName'],
            account['createDate'],
            account.get('cdnAccountNote', formatting.blank())
        ])

    table.sortby = sortby
    env.fout(table)
The number of leaf nodes (original observations) belonging to
dataset/ETHPy150Open softlayer/softlayer-python/SoftLayer/CLI/cdn/list.py/cli--crossover with--dataset/ETHPy150Open scipy/scipy/scipy/cluster/hierarchy.py/ClusterNode.get_count