mirror of
https://github.com/overleaf/overleaf.git
synced 2025-04-11 20:05:30 +00:00
Merge pull request #16370 from overleaf/dk-fix-project-sorting
Fix sort projects by owner GitOrigin-RevId: 2108d57588071a2884a3eed4e8a917de46cfe749
This commit is contained in:
parent
ebd2a2f5fe
commit
62cffcd909
1 changed files with 1 additions and 3 deletions
|
@ -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 = (
|
||||
|
|
Loading…
Add table
Reference in a new issue