diff --git a/packages/edit-site/src/components/global-styles/font-library-modal/index.js b/packages/edit-site/src/components/global-styles/font-library-modal/index.js index 5661a002f71ecb..9caebc43304c28 100644 --- a/packages/edit-site/src/components/global-styles/font-library-modal/index.js +++ b/packages/edit-site/src/components/global-styles/font-library-modal/index.js @@ -59,6 +59,10 @@ function FontLibraryModal( { tabs.push( ...tabsFromCollections( collections || [] ) ); } + const sortedTabs = [ ...tabs ].sort( ( a, b ) => + a.title.localeCompare( b.title ) + ); + return (
- { tabs.map( ( { id, title } ) => ( + { sortedTabs.map( ( { id, title } ) => ( { title } ) ) }
- { tabs.map( ( { id } ) => { + { sortedTabs.map( ( { id } ) => { let contents; switch ( id ) { case 'upload-fonts':