diff --git a/index.html b/index.html
index 263237d..21da5df 100644
--- a/index.html
+++ b/index.html
@@ -59,7 +59,7 @@
const contextURL = url+'/context';
const context = await getJSONObject(contextURL);
- for (const descendant of context.descendants) {
+ for (const descendant of context.descendants.sort( function (a, b) { return a.id - b.id; })) {
buildArticle(target, descendant.id);
}