From a7d8774a4e951e14c653cbd4b94f4db9bb216a26 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Wed, 26 Apr 2023 09:29:40 +0700 Subject: [PATCH 1/2] fix: lower case before sort --- src/pages/workspace/WorkspacesListPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/workspace/WorkspacesListPage.js b/src/pages/workspace/WorkspacesListPage.js index 34a4c8ada779..f1dbbbb7f1d3 100755 --- a/src/pages/workspace/WorkspacesListPage.js +++ b/src/pages/workspace/WorkspacesListPage.js @@ -137,7 +137,7 @@ class WorkspacesListPage extends Component { dismissError: () => dismissWorkspaceError(policy.id, policy.pendingAction), disabled: policy.pendingAction === CONST.RED_BRICK_ROAD_PENDING_ACTION.DELETE, })) - .sortBy(policy => policy.title) + .sortBy(policy => policy.title.toLowerCase()) .value(); } From 4661e0157f8a88822dd69a763851dfdb890c9dc2 Mon Sep 17 00:00:00 2001 From: dukenv0307 Date: Wed, 26 Apr 2023 10:22:43 +0700 Subject: [PATCH 2/2] fix: lower case before sort in setting page --- src/pages/settings/InitialSettingsPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/settings/InitialSettingsPage.js b/src/pages/settings/InitialSettingsPage.js index 795b1392e66f..80291126530e 100755 --- a/src/pages/settings/InitialSettingsPage.js +++ b/src/pages/settings/InitialSettingsPage.js @@ -159,7 +159,7 @@ class InitialSettingsPage extends React.Component { getDefaultMenuItems() { const policiesAvatars = _.chain(this.props.policies) .filter(policy => PolicyUtils.shouldShowPolicy(policy, this.props.network.isOffline)) - .sortBy(policy => policy.name) + .sortBy(policy => policy.name.toLowerCase()) .map(policy => ({ source: policy.avatar || ReportUtils.getDefaultWorkspaceAvatar(policy.name), name: policy.name,