Browse Source

docs: optimize site menu sort (#26471)

pull/26476/head
xrkffgg 4 years ago
committed by GitHub
parent
commit
ae650485a0
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      site/theme/template/Content/MainContent.jsx

2
site/theme/template/Content/MainContent.jsx

@ -135,7 +135,7 @@ class MainContent extends Component {
return (
<Menu.ItemGroup title={menuItem.title} key={menuItem.title}>
{menuItem.children
.sort((a, b) => a.title.charCodeAt(0) - b.title.charCodeAt(0))
.sort((a, b) => a.title.localeCompare(b.title))
.map(leaf => this.generateMenuItem(false, leaf, footerNavIcons))}
</Menu.ItemGroup>
);

Loading…
Cancel
Save