diff --git a/src/pages/status.jsx b/src/pages/status.jsx index 0989122e..91fcc417 100644 --- a/src/pages/status.jsx +++ b/src/pages/status.jsx @@ -321,6 +321,10 @@ function StatusThread({ id, closeLink = '/', instance: propInstance }) { const context = await contextFetch; const { ancestors, descendants } = context; + // Sort oldest first + ancestors.sort((a, b) => a.createdAt - b.createdAt); + descendants.sort((a, b) => a.createdAt - b.createdAt); + totalDescendants.current = descendants?.length || 0; const missingStatuses = new Set();