I have an array:

```
const names = [{name: 'a', equal: 3},
{name: 'b', equal: 2},
{name: 'c', equal: 2},
{name: 'd', equal: 3},
{name: 'a1', equal: 1}]

```

I'm running \_.groupBy(names, 'equal') and as a result I get:

```
{1: [{equal: 1, name: 'a1'}],
 2: [{equal: 2, name: 'b'}, {equal: 2, name: 'c'}],
 3: [{equal: 3, name: 'a'}, {equal: 3, name: 'd'}]}

```

But here the sorting by name disappears. How do I sort by name in this object?

**Update**

I want to get:

```
{3: [{equal: 3, name: 'a'}, {equal: 3, name: 'd'}],
 1: [{equal: 1, name: 'a1'}],
 2: [{equal: 2, name: 'b'}, {equal: 2, name: 'c'}]}

```