@@ -55,9 +55,8 @@ applyJoinTemplateList delimiter tpl context items = do
57--------------------------------------------------------------------------------
57--------------------------------------------------------------------------------
58−-- | Sort pages chronologically. This function assumes that the pages have a
58+-- | Sort pages chronologically. Uses the same method as 'dateField' for
59−-- @year-month-day-title.extension@ naming scheme -- as is the convention in
59+-- extracting the date.
61chronological :: MonadMetadata m => [Item a] -> m [Item a]
60chronological :: MonadMetadata m => [Item a] -> m [Item a]
62chronological =
61chronological =
63 sortByM $ getItemUTC defaultTimeLocale . itemIdentifier
62 sortByM $ getItemUTC defaultTimeLocale . itemIdentifier