Return the actual objects (#11570)
This commit is contained in:
parent
b170b77a3f
commit
9c5ff69213
|
@ -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
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue