mirror of
https://github.com/edufeed-org/polloer.git
synced 2025-12-07 23:34:31 +00:00
sort by created at, newest on top
This commit is contained in:
parent
c90b5ce0b1
commit
d3fb4275ba
1 changed files with 1 additions and 1 deletions
|
|
@ -57,7 +57,7 @@
|
|||
{/key}
|
||||
|
||||
<div class="mx-auto flex w-full flex-col items-center justify-center gap-5">
|
||||
{#each $comments as event}
|
||||
{#each $comments.sort((a, b) => a.created_at - b.created_at).reverse() as event}
|
||||
<Comment {event} />
|
||||
{/each}
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue