I have a dictionary that is as follows:

```
var dict: [Date:Int]

```

In my app, I would like to 'sort' the values based on the month. So for example, if my dictionary looks like this:

```
dict = [01-01-2020: 10, 01-15-2020: 17, 01-16-2020: 6, 02-03-2020: 8, 02-04-2020: 10]

```

I would like to be able to convert it to a dictionary that looks like this:

```
dict = [01-01-2020: [10,17,6], 02-01-2020: [8,10]]

```

What is the best way to tackle this problem?