diff --git a/src/client/theme-default/slots/ContentTabs/index.tsx b/src/client/theme-default/slots/ContentTabs/index.tsx index 90a9ae42cb..8861ec9cde 100644 --- a/src/client/theme-default/slots/ContentTabs/index.tsx +++ b/src/client/theme-default/slots/ContentTabs/index.tsx @@ -26,19 +26,24 @@ const ContentTabs: FC = ({ {intl.formatMessage({ id: 'content.tabs.default' })} - {tabs!.map((tab) => ( -
  • onChange(tab)} - data-active={key === tab.key || undefined} - > - -
  • - ))} + {tabs! + .sort( + (a, b) => + (b.meta.frontmatter.order || 0) - (a.meta.frontmatter.order || 0), + ) + .map((tab) => ( +
  • onChange(tab)} + data-active={key === tab.key || undefined} + > + +
  • + ))} ) : null; };