Sort platforms and frameworks by name

This commit is contained in:
Ivan Kravets
2017-06-23 14:08:46 +03:00
parent 77a14f3c7b
commit 6e7de3a01c

View File

@ -202,6 +202,7 @@ def platform_frameworks(query, json_output):
]
frameworks.append(framework)
frameworks = sorted(frameworks, key=lambda manifest: manifest['name'])
if json_output:
click.echo(json.dumps(frameworks))
else:
@ -219,6 +220,8 @@ def platform_list(json_output):
manifest['__pkg_dir'],
with_boards=False,
expose_packages=False))
platforms = sorted(platforms, key=lambda manifest: manifest['name'])
if json_output:
click.echo(json.dumps(platforms))
else: