diff --git a/apps/client/src/ee/components/joined-workspaces.tsx b/apps/client/src/ee/components/joined-workspaces.tsx index 7129aa00..4029a501 100644 --- a/apps/client/src/ee/components/joined-workspaces.tsx +++ b/apps/client/src/ee/components/joined-workspaces.tsx @@ -15,35 +15,37 @@ export default function JoinedWorkspaces() { return ( <> - {data.map((workspace: Partial, index) => ( - - - + {data + .sort((a, b) => a.name.localeCompare(b.name)) + .map((workspace: Partial, index) => ( + + + -
- - {workspace?.name} - +
+ + {workspace?.name} + - - {getHostnameUrl(workspace?.hostname)?.split("//")[1]} - -
+ + {getHostnameUrl(workspace?.hostname)?.split("//")[1]} + +
- -
-
- ))} + +
+
+ ))} ); }