We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd84a7 commit 8875494Copy full SHA for 8875494
src/data/posts.ts
@@ -7,8 +7,8 @@ export async function getPublishedPosts() {
7
.filter((post) => !post.data.draft)
8
.sort(
9
(a, b) =>
10
- +(b.data.last_modified_at ?? b.data.published_at) -
11
- +(a.data.last_modified_at ?? a.data.published_at),
+ +b.data.published_at -
+ +a.data.published_at,
12
);
13
}
14
0 commit comments