diff --git a/examples/docs/abstract.schema.md b/examples/docs/abstract.schema.md
index b9753b81bb245b53b728557c11239ac4f9b1ce29..be4054cf44fe290d9d0c409a520afebd5592ea6b 100644
--- a/examples/docs/abstract.schema.md
+++ b/examples/docs/abstract.schema.md
@@ -19,8 +19,8 @@ This is an abstract schema. It has `definitions`, but does not declare any prope
 
 | Property | Type | Group |
 |----------|------|-------|
-| [foo](#foo) | `string` | `#/definitions/first` |
 | [bar](#bar) | `string` | `#/definitions/second` |
+| [foo](#foo) | `string` | `#/definitions/first` |
 
 ## bar
 
diff --git a/examples/docs/extensible.schema.md b/examples/docs/extensible.schema.md
index 9d90134a9aa84e867acecf013c74676a85dc3ad5..4a79bbfc702de9faf80bcd6d828d6bb693a547ba 100644
--- a/examples/docs/extensible.schema.md
+++ b/examples/docs/extensible.schema.md
@@ -19,8 +19,8 @@ This is an extensible schema. It has `definitions`, that can be used in other sc
 
 | Property | Type | Group |
 |----------|------|-------|
-| [foo](#foo) | `string` | `#/definitions/first` |
 | [bar](#bar) | `string` | `#/definitions/second` |
+| [foo](#foo) | `string` | `#/definitions/first` |
 
 ## bar
 
diff --git a/templates/md/definitions.ejs b/templates/md/definitions.ejs
index 3c159187e5cf4fbd5d03cab872a8226707a9145a..825051ddb384fa9f7917ff433886d99c7c8282a0 100644
--- a/templates/md/definitions.ejs
+++ b/templates/md/definitions.ejs
@@ -10,6 +10,7 @@
 
 | Property | Type | Group |
 |----------|------|-------|
-<%  _.forIn(props, (schema, property, object) => { %>
+<% _.keys(props).sort().forEach(property => {
+  const schema = props[property]; %>
 | [<%= property %>](#<%= property %>) | <%= schema.simpletype %> | `#/definitions/<%= schema.definitiongroup %>` |
 <% }); %>
\ No newline at end of file