aboutsummaryrefslogtreecommitdiffhomepage
path: root/nuldoc-src/commands/build.ts
diff options
context:
space:
mode:
Diffstat (limited to 'nuldoc-src/commands/build.ts')
-rw-r--r--nuldoc-src/commands/build.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/nuldoc-src/commands/build.ts b/nuldoc-src/commands/build.ts
index 734f520..8765802 100644
--- a/nuldoc-src/commands/build.ts
+++ b/nuldoc-src/commands/build.ts
@@ -117,8 +117,8 @@ function collectTags(posts: Document[]): [string, Document[]][] {
result.push([
tag,
tagsAndPosts.get(tag).sort((a: Document, b: Document) => {
- const ta = a.revisions[0].date;
- const tb = b.revisions[0].date;
+ const ta = a.getCreatedDate();
+ const tb = b.getCreatedDate();
if (ta > tb) return -1;
if (ta < tb) return 1;
return 0;