Descendants now ordered by id, which displays a very similar order like the original thread on mastodon.

This commit is contained in:
maste9 2022-02-12 19:07:50 +01:00
parent 4611ee5ce9
commit 3ba3fafff8
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}