Sort constructors on the documentation for predictable results

This commit is contained in:
Lonami Exo 2017-06-04 20:21:45 +02:00
parent 2f00033683
commit 3de398bae6

View File

@ -218,6 +218,9 @@ def generate_documentation(scheme_file):
else: else:
dictionary[tlobject.result] = [tlobject] dictionary[tlobject.result] = [tlobject]
for tltype, constructors in tltypes.items():
tltypes[tltype] = list(sorted(constructors, key=lambda c: c.name))
for tlobject in tlobjects: for tlobject in tlobjects:
filename = get_create_path_for(tlobject) filename = get_create_path_for(tlobject)