1. faassen
  2. example_blaag

Commits

Fredrik Håård  committed 6d1fdd0

fixed post sorting

  • Participants
  • Parent commits 3eb07da
  • Branches default

Comments (0)

Files changed (1)

File blaag.py

View file
  • Ignore whitespace
     return publish_parts(entry, writer_name="html")
 
 def get_entries():
-    """Get the filenames of all entries, sorted using [].sort()"""
+    """Get the filenames of all entries, sorted using [].sort(reverse=True)"""
     entries = [x for x in os.listdir(ENTRIES_PATH) if x.endswith(".rst")]
-    entries.sort()
+    entries.sort(reverse=True)
     return entries
 
 def get_data_entries(entries):