Browse Source

feat(PrPage): sort thead by oldest first

previous it was just as it came in from the relays
master
DanConwayDev 2 years ago
parent
commit
be8bdb97fd
No known key found for this signature in database
GPG Key ID: 68E15486D73F75E1
  1. 4
      src/lib/stores/PR.ts

4
src/lib/stores/PR.ts

@ -178,7 +178,9 @@ export const ensurePRFull = (repo_id: string, pr_id: string) => { @@ -178,7 +178,9 @@ export const ensurePRFull = (repo_id: string, pr_id: string) => {
}
}
selected_pr_replies.update((replies) => {
return [...replies, event]
return [...replies, event].sort(
(a, b) => (a.created_at || 0) - (b.created_at || 0)
)
})
})

Loading…
Cancel
Save