diff --git a/explorer/src/components/block/BlockHistoryCard.tsx b/explorer/src/components/block/BlockHistoryCard.tsx index f900500cff..6c3a39cfb1 100644 --- a/explorer/src/components/block/BlockHistoryCard.tsx +++ b/explorer/src/components/block/BlockHistoryCard.tsx @@ -249,7 +249,13 @@ const FilterDropdown = ({ filterOptions.push({ name, programId, transactionCount }); }); - filterOptions.sort(); + filterOptions.sort((a, b) => { + if (a.transactionCount !== b.transactionCount) { + return b.transactionCount - a.transactionCount; + } else { + return b.name > a.name ? -1 : 1; + } + }); return (