Sort keys alphabetically in tables. Sort event types alphabetically in sections.

pull/977/head
Kegan Dougal 10 years ago
parent d6943dfbff
commit d3dca1f357

@ -7,7 +7,7 @@ def _render_section_room_events(env, units):
examples = units.get("event-examples")
schemas = units.get("event-schemas")
sections = []
for event_name in schemas:
for event_name in sorted(schemas):
if not event_name.startswith("m.room"):
continue
sections.append(template.render(

@ -23,7 +23,7 @@ def _load_common_event_fields():
"desc": event_info["description"],
"rows": []
}
for prop in event_info["properties"]:
for prop in sorted(event_info["properties"]):
row = {
"key": prop,
"type": event_info["properties"][prop]["type"],
@ -72,7 +72,7 @@ def _load_schemas():
tables = [fields]
props = obj["properties"]
for key_name in props:
for key_name in sorted(props):
value_type = None
required = key_name in required_keys
desc = props[key_name].get("description", "")

Loading…
Cancel
Save