Sort platforms and frameworks by name

This commit is contained in:
Ivan Kravets committed 2017-06-23 14:08:46 +03:00
1 parent 77a14f3c7b
commit 6e7de3a01c
1 file changed
+3
+3
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: