How to group and sort object array based on string index

welcome to shbcf.ru