]> code.delx.au - webdl/commitdiff
Sort nodes so that autograbber fetches them in a more reasonable order
authorJames Bunton <jamesbunton@delx.net.au>
Sun, 12 Apr 2020 08:03:24 +0000 (18:03 +1000)
committerJames Bunton <jamesbunton@delx.net.au>
Sun, 12 Apr 2020 08:03:40 +0000 (18:03 +1000)
Thanks to Paul Wise

common.py

index e90bbf701885ca47056bfdbba093b6883db3d587..c55102a0e0df4cdab1792b08341bb167dd6147c2 100644 (file)
--- a/common.py
+++ b/common.py
@@ -50,6 +50,7 @@ class Node(object):
     def get_children(self):
         if not self.children:
             self.fill_children()
+            self.children.sort(key=lambda node: node.title)
         return self.children
 
     def fill_children(self):