diff --git a/CHDataManagement/Generator/Post Lists/PostListPageGenerator.swift b/CHDataManagement/Generator/Post Lists/PostListPageGenerator.swift index a00e74a..1296d88 100644 --- a/CHDataManagement/Generator/Post Lists/PostListPageGenerator.swift +++ b/CHDataManagement/Generator/Post Lists/PostListPageGenerator.swift @@ -21,6 +21,8 @@ final class PostListPageGenerator { } func createPages(for posts: [Post]) { + // Sort by newest first + let posts = posts.sorted(ascending: false) { $0.startDate } let totalCount = posts.count guard totalCount > 0 else { // Create one empty page