diff options
author | Craig Tiller <craig.tiller@gmail.com> | 2015-01-18 12:03:17 -0800 |
---|---|---|
committer | Craig Tiller <craig.tiller@gmail.com> | 2015-01-18 12:03:17 -0800 |
commit | 7d7b6c768b7c7a83c9480ff88586abc3088fb379 (patch) | |
tree | 636d8d159f4aca965d183abf385e756554ff1c96 /tools | |
parent | d6d927a7c7cde7121816591482da01293f36f6d7 (diff) |
Sort by language, then by name
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/buildgen/build-cleaner.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/buildgen/build-cleaner.py b/tools/buildgen/build-cleaner.py index 66ee99773e..00821cc9cc 100755 --- a/tools/buildgen/build-cleaner.py +++ b/tools/buildgen/build-cleaner.py @@ -45,7 +45,7 @@ for filename in sys.argv[1:]: for grp in ['filegroups', 'libs', 'targets']: if grp not in js: continue js[grp] = sorted([clean_elem(x) for x in js[grp]], - key=lambda x: x['name']) + key=lambda x: (x.get('language', '_'), x['name'])) output = json.dumps(js, indent = 2) # massage out trailing whitespace lines = [] |