mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 20:27:43 +00:00
fix: lowercase name compare for sort
This commit is contained in:
@@ -523,8 +523,8 @@ const OrganizationPage = () => {
|
|||||||
.filter((ws) => ws?.name?.toLowerCase().includes(searchFilter.toLowerCase()))
|
.filter((ws) => ws?.name?.toLowerCase().includes(searchFilter.toLowerCase()))
|
||||||
.sort((a, b) =>
|
.sort((a, b) =>
|
||||||
orderDirection === OrderByDirection.ASC
|
orderDirection === OrderByDirection.ASC
|
||||||
? a.name.localeCompare(b.name)
|
? a.name.toLowerCase().localeCompare(b.name.toLowerCase())
|
||||||
: b.name.localeCompare(a.name)
|
: b.name.toLowerCase().localeCompare(a.name.toLowerCase())
|
||||||
),
|
),
|
||||||
[searchFilter, page, perPage, orderDirection, offset, limit]
|
[searchFilter, page, perPage, orderDirection, offset, limit]
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user