Y
Size: a a a
Y
SA
IS
const getFirstKey = obj => Object.keys(obj)[0];
const arr = [
{'a': {title: 'a'}},
{'b': { title: 'b'}}
];
arr.sort((a, b) => {
const aTitle = a[getFirstKey(a)].title;
const bTitle = b[getFirstKey(b)].title;
return new Intl.Collator().compare(aTitle, bTitle)
})
ST
ПЯ
ПЯ
ПЯ
ИД
IS
IS
ИД
t
ИД
IS
ИД
IS
Рк
Рк
Рк