diff --git a/main.cr b/main.cr index 43cce28..e80d42c 100644 --- a/main.cr +++ b/main.cr @@ -96,7 +96,7 @@ class PostRepository end def all : Array(Post) - posts = Dir.glob("#{@config.content_dir}/*.md").map do |file| + posts = Dir.glob("#{@config.content_dir}/*.md").sort.map do |file| Post.new(file) end posts.reverse