Consistent sorting of output
This commit is contained in:
@ -24,8 +24,8 @@ final class LoadingContext {
|
||||
func results() -> LoadingResult {
|
||||
.init(
|
||||
settings: settings ?? .default,
|
||||
posts: posts.values.sorted(ascending: false) { $0.startDate },
|
||||
pages: pages.values.sorted(ascending: false) { $0.startDate },
|
||||
posts: posts.values.sortedByStartDateAndId(),
|
||||
pages: pages.values.sortedByStartDateAndId(),
|
||||
tags: tags.values.sorted(),
|
||||
files: files.values.sorted { $0.id },
|
||||
tagOverview: tagOverview,
|
||||
|
Reference in New Issue
Block a user