diff --git a/packages/nextjs/app/debug/_components/DebugContracts.tsx b/packages/nextjs/app/debug/_components/DebugContracts.tsx index 775f456ad..9822680f3 100644 --- a/packages/nextjs/app/debug/_components/DebugContracts.tsx +++ b/packages/nextjs/app/debug/_components/DebugContracts.tsx @@ -11,7 +11,13 @@ const selectedContractStorageKey = "scaffoldEth2.selectedContract"; export function DebugContracts() { const contractsData = useAllContracts(); - const contractNames = useMemo(() => Object.keys(contractsData) as ContractName[], [contractsData]); + const contractNames = useMemo( + () => + Object.keys(contractsData).sort((a, b) => { + return a.localeCompare(b, undefined, { numeric: true, sensitivity: "base" }); + }) as ContractName[], + [contractsData], + ); const [selectedContract, setSelectedContract] = useSessionStorage( selectedContractStorageKey,