diff --git a/files/script.py b/files/script.py
index 76eebb9cbc2e76f5dfd44878ce190fe6773a2fae..c3232d880a0a3c49dd1f815750223977e3a91235 100644
--- a/files/script.py
+++ b/files/script.py
@@ -419,6 +419,8 @@ def import_dep_info(file_path, endpoints_to_scan):
             if host not in endpoints:
                 endpoints[host] = {"22"}
             endpoints[host].add(port)
+    for host,ports in endpoints.items():
+        endpoints[host] = sorted(list(ports))
     return endpoints
                 
 ################ MAIN #######################################