Merge pull request #16370 from overleaf/dk-fix-project-sorting

Fix sort projects by owner

GitOrigin-RevId: 2108d57588071a2884a3eed4e8a917de46cfe749
This commit is contained in:
Jimmy Domagala-Tang 2024-01-03 09:58:50 -05:00 committed by Copybot
parent ebd2a2f5fe
commit 62cffcd909

View file

@ -49,9 +49,7 @@ export const ownerNameComparator = (v1: Project, v2: Project) => {
return Compare.SORT_A_AFTER_B
}
return ownerNameV1 > ownerNameV2
? Compare.SORT_A_BEFORE_B
: Compare.SORT_A_AFTER_B
return ownerNameV1.localeCompare(ownerNameV2)
}
export const defaultComparator = (