Return the actual objects (#11570)

This commit is contained in:
melohagan 2023-08-21 12:45:26 +01:00 committed by GitHub
parent b170b77a3f
commit 9c5ff69213
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@
const nameA = getDisplayName(a)
const nameB = getDisplayName(b)
if (orderA !== orderB) {
return orderA < orderB ? orderA : orderB
return orderA < orderB ? a : b
}
return nameA < nameB ? a : b
})