Sort after intersection

Change-Id: I1b812c7617da0b2c77389e27399f2c7fc97c440c
diff --git a/list-dereko-korap-release.yml b/list-dereko-korap-release.yml
index c723312..297e487 100644
--- a/list-dereko-korap-release.yml
+++ b/list-dereko-korap-release.yml
@@ -36,6 +36,6 @@
 
     - name: Compare both lists and show intersection
       ansible.legacy.copy:
-        content: "{{ newfiles.files | map(attribute='path') | sort() | intersect( sqlresult.query_result[0] | map(attribute='cname') ) | join('\n') }}"
+        content: "{{ newfiles.files | map(attribute='path') | intersect( sqlresult.query_result[0] | map(attribute='cname') ) | sort() | join('\n') }}"
         dest: dereko-ingestion.txt
       delegate_to: localhost