Sort apps in the grid by label

This commit is contained in:
Johannes Zellner
2025-10-30 16:01:03 +01:00
parent a5452e4b15
commit ec191d51bc

View File

@@ -149,6 +149,11 @@ const filteredApps = computed(() => {
if (stateFilter.value === 'update_available') return a.updateInfo;
return a.runState === RSTATES.RUNNING && (a.health !== HSTATES.HEALTHY || a.installationState !== ISTATES.INSTALLED); // not responding
}).sort((a, b) => {
const labelA = a.label || a.subdomain || a.fqdn;
const labelB = b.label || b.subdomain || b.fqdn;
return labelA.localeCompare(labelB);
});
});