zanata_users: sort language team alphabetically
We have a number of language team now. translation_team.yaml is previously sorted based on the number of translators, but it means the order of language teams can be changed time to time. Alphabetical order will reduce accidental big diff and makes easier to search. Change-Id: Ib704d9f88d4ea7f6b18a390c956538072b52ac0d
This commit is contained in:
parent
99b4f6e2ae
commit
8caba73ceb
@ -122,10 +122,7 @@ def collect_zanata_language_and_members():
|
||||
languages[language][role] = list()
|
||||
languages[language][role].append(user_id)
|
||||
|
||||
sorted_key = sorted(languages, reverse=True,
|
||||
# Need to consider a case where no tranlators in a team
|
||||
key=lambda k: len(languages[k].get('translators', [])))
|
||||
result = OrderedDict((k, languages[k]) for k in sorted_key)
|
||||
result = OrderedDict((k, languages[k]) for k in sorted(languages))
|
||||
return result
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user