Descendants now ordered by id, which displays a very similar order like the original thread on mastodon.
This commit is contained in:
parent
4611ee5ce9
commit
3ba3fafff8
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue