Problem
The MCP tools code uses custom index-based callbacks for both natural string ordering and contract ordering.
Proposed change
Use slices.Sort for naturally ordered strings and slices.SortFunc for contract values. The output order remains unchanged.
Scope
This is an internal refactor with no command-line, MCP schema, or user-visible behavior changes.
Problem
The MCP tools code uses custom index-based callbacks for both natural string ordering and contract ordering.
Proposed change
Use
slices.Sortfor naturally ordered strings andslices.SortFuncfor contract values. The output order remains unchanged.Scope
This is an internal refactor with no command-line, MCP schema, or user-visible behavior changes.