1
0
Fork 0
mirror of synced 2024-07-10 16:55:46 +12:00

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

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
})