From 3ba3fafff8344d67d5b28a94b3b32ebf3f3fae66 Mon Sep 17 00:00:00 2001 From: maste9 Date: Sat, 12 Feb 2022 19:07:50 +0100 Subject: [PATCH] Descendants now ordered by id, which displays a very similar order like the original thread on mastodon. --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }