Skip to content

Commit 1d83bed

Browse files
committed
fix news order
1 parent 752242e commit 1d83bed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Extensions/Signum.WhatsNew/Templates/AllNewsPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ export default function AllNews() {
2020
<h2>{WhatsNewMessage.YourNews.niceToString()} {news && <span className="sf-news-notify-badge" style={{ marginTop: "6px", marginLeft: "3px", fontSize: "12px" }}>{news.length}</span>}
2121
</h2>
2222
<div className="mt-3">
23-
<div style={{ display: "flex", flexFlow: "wrap" }}>
24-
{news && news.map(wn =>
23+
<div style={{ display: "flex", flexFlow: "wrap" }}>
24+
{news && news.orderByDescending(n => n.creationDate).map(wn =>
2525
<WhatsNewPreviewPicture key={wn.whatsNew.id} news={wn} />
2626
)}
2727
</div>

0 commit comments

Comments
 (0)