X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/663d1c8f22c26b51c0c132388cde9d28fa6eeef0..861a08cdc38728e9f988a0a321e62693e26e947f:/apps/api/handlers/library_handlers.py diff --git a/apps/api/handlers/library_handlers.py b/apps/api/handlers/library_handlers.py index b2ff94b4..b9e6314b 100644 --- a/apps/api/handlers/library_handlers.py +++ b/apps/api/handlers/library_handlers.py @@ -80,10 +80,7 @@ class LibraryHandler(BaseHandler): # not top-level anymore document_tree.pop(part) parent['parts'].append(child) - - # sort the right way - for doc in documents.itervalues(): doc['parts'].sort(key=natural_order(lambda d: d['name']))