How to group array with objects by the property

join shbcf.ru