Skip to content

Commit 88f80b7

Browse files
committed
2445 client - Clarify variable names in MCP server sorting logic for improved readability
1 parent e26830c commit 88f80b7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

client/src/pages/automation/mcp-servers/components/mcp-server-list/McpServerList.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const McpServerList = ({mcpServers, tags}: McpServerListProps) => {
3838

3939
const queryClient = useQueryClient();
4040

41-
const sortedMcpServers = [...mcpServers].sort((a, b) => a.name.localeCompare(b.name));
41+
const sortedMcpServers = [...mcpServers].sort((previousMcpServer, currentMcpServer) =>
42+
previousMcpServer.name.localeCompare(currentMcpServer.name)
43+
);
4244

4345
return (
4446
<div className="w-full divide-y divide-border/50 px-4 3xl:mx-auto 3xl:w-4/5">

0 commit comments

Comments
 (0)