fix(monitor): preserve Docker web link ordering

This commit is contained in:
VAIO73
2026-10-19 08:16:16 +00:00
parent cfb90a094c
commit 8775fd30c5
2 changed files with 14 additions and 1 deletions
+1 -1
View File
@@ -281,7 +281,7 @@ def cached_web_links(vmid, lookup):
result.append({**endpoint, 'container_name': record['name'],
'service_name': meta['name'], 'service_slug': meta['slug'],
'image': record['image'], 'web_path': '/', 'logo_url': meta['logo_url']})
return result
return sorted(result, key=lambda item: (item["service_name"].lower(), item["host_port"]))
def filter_candidates(result, suggestions, apps):