diff --git a/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx b/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx index c42d9d304d..5b1560db20 100644 --- a/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx +++ b/front/src/pages/companies/__stories__/Companies.sortBy.stories.tsx @@ -27,9 +27,9 @@ const meta: Meta = { export default meta; -const sortedCompanyNames = mockedCompaniesData +const sortedCompanyNames = [...mockedCompaniesData] .map(({ name }) => name) - .toSorted(); + .sort((a, b) => a.localeCompare(b)); export const SortByName: Story = { play: async ({ canvasElement, step }) => { diff --git a/front/src/pages/people/__stories__/People.sortBy.stories.tsx b/front/src/pages/people/__stories__/People.sortBy.stories.tsx index acfae6c7bf..a50b5cea63 100644 --- a/front/src/pages/people/__stories__/People.sortBy.stories.tsx +++ b/front/src/pages/people/__stories__/People.sortBy.stories.tsx @@ -28,7 +28,7 @@ const meta: Meta = { export default meta; const peopleEmails = mockedPeopleData.map(({ email }) => email); -const sortedPeopleEmails = peopleEmails.toSorted(); +const sortedPeopleEmails = [...peopleEmails].sort((a, b) => a.localeCompare(b)); export const Email: Story = { play: async ({ canvasElement, step }) => {