# HG changeset patch # User Ludovic Chabant # Date 1517018404 28800 # Node ID ba809c221a27d34941ee0b57ca5c92a21c56c2a5 # Parent aa4f1e04cf3e0225998556a286dc974a24a0d51f data: Properly order month names in blog archives. diff -r aa4f1e04cf3e -r ba809c221a27 piecrust/sources/blogarchives.py --- a/piecrust/sources/blogarchives.py Tue Jan 23 08:54:58 2018 -0800 +++ b/piecrust/sources/blogarchives.py Fri Jan 26 18:00:04 2018 -0800 @@ -121,9 +121,10 @@ posts_this_month.append(page.content_item) self._months = [] - for m, ptm in month_index.items(): + for m in sorted(month_index.keys()): timestamp = time.mktime((self._year, m, 1, 0, 0, 0, 0, 0, -1)) + ptm = month_index[m] it = PageIterator(ListSource(self._inner_source, ptm)) it._wrapAsSort(DateSortIterator, reverse=False)