comments-order-hotfix

This commit is contained in:
Untone 2024-02-29 18:05:05 +03:00
parent 9e513b2430
commit abc2d01485

View File

@ -25,6 +25,7 @@ import { Loading } from '../../_shared/Loading'
import stylesArticle from '../../Article/Article.module.scss'
import styles from './Author.module.scss'
import {byCreated} from "../../../utils/sortby";
type Props = {
shouts: Shout[]
@ -231,7 +232,7 @@ export const AuthorView = (props: Props) => {
<div class="row">
<div class="col-md-20 col-lg-18">
<ul class={stylesArticle.comments}>
<For each={commented()}>
<For each={commented()?.sort(byCreated).reverse()}>
{(comment) => <Comment comment={comment} class={styles.comment} showArticleLink />}
</For>
</ul>