diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/metadata_filter.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/metadata_filter.lua b/scripts/metadata_filter.lua index cd0c2f7..8982d5a 100644 --- a/scripts/metadata_filter.lua +++ b/scripts/metadata_filter.lua | |||
@@ -201,7 +201,7 @@ function organize_subpages(site_url, output_dir, ref_file, pages) | |||
201 | local pages_categorized = pages:filter( | 201 | local pages_categorized = pages:filter( |
202 | function(p) return p.category ~= nil end) | 202 | function(p) return p.category ~= nil end) |
203 | pages_categorized:sort(function(p1, p2) | 203 | pages_categorized:sort(function(p1, p2) |
204 | return pandoc.utils.stringify(p1.title) > | 204 | return pandoc.utils.stringify(p1.title) < |
205 | pandoc.utils.stringify(p2.title) | 205 | pandoc.utils.stringify(p2.title) |
206 | end) | 206 | end) |
207 | 207 | ||
@@ -218,7 +218,7 @@ function organize_subpages(site_url, output_dir, ref_file, pages) | |||
218 | end) | 218 | end) |
219 | pages_by_category = pandoc.MetaList(table_to_list(pages_by_category, | 219 | pages_by_category = pandoc.MetaList(table_to_list(pages_by_category, |
220 | function(i1, i2) | 220 | function(i1, i2) |
221 | return i1.key > i2.key | 221 | return i1.key < i2.key |
222 | end)) | 222 | end)) |
223 | 223 | ||
224 | local pages_data = pandoc.MetaMap({ | 224 | local pages_data = pandoc.MetaMap({ |