diff --git a/apps/admin-x-settings/src/components/settings/site/theme/AdvancedThemeSettings.tsx b/apps/admin-x-settings/src/components/settings/site/theme/AdvancedThemeSettings.tsx index 535620233f..642e5a9326 100644 --- a/apps/admin-x-settings/src/components/settings/site/theme/AdvancedThemeSettings.tsx +++ b/apps/admin-x-settings/src/components/settings/site/theme/AdvancedThemeSettings.tsx @@ -151,7 +151,11 @@ const ThemeList:React.FC = ({ return 1; // b comes before a } else { // Both have the same active status, sort alphabetically - return a.name.localeCompare(b.name); + if (a.package?.name && b.package?.name) { + return a.package.name.localeCompare(b.package.name); + } else { + return a.name.localeCompare(b.name); + } } });