Changelog API, how to sort changes by their version (tags)

I am using Gitlab Changelog API to generate changelog. I have a repository that contains multiple tagged versions (releases). Under each release, there are various commits. See the example below:

Lets assume that I want to generate a changelog that would contain all changes from the 2.8.0 till the 3.2.0.

I execute the following command:

glab changelog generate >> release_notes.md --from 66d2f48e348bb9fc65a92647cb24f1f301fcbb4c

(The commit hash used above is the commit for 2.8.0 tag).

The result is:

## 3.2.0-3-g58c58ee
 (2023-12-18)

### added (4 changes)

- [adding trailer via cmd line](embeded-programmers/gitchangelog-test@5263ee4c0520fc050ef8bb4831a79652f3b8f3cf)
- [random shit feature completed](embeded-programmers/gitchangelog-test@89164b648f1c6323fe6c456371d2aa9ed2bc843d)
- [temperature measurements supports new sensor](embeded-programmers/gitchangelog-test@3e2c90e7f565f155f3af832974ad3ac0ab5bb134)
- [new feature for 2.9.0](embeded-programmers/gitchangelog-test@905551aaea9a18b9cb00a2db00abf85e271a7bb0)

As you can see from above, it detected 4 changes (because some commits did not contain commit trailer).

My issue with above is that all changes are listed in one big blob and are not sorted by their version. I want to see which changes were done on the version 2.9.0, which changes were done on version 3.0.0 and etc… How can I make sure that changes are generated and ordered by their tagged version? My expectations are something like below (Keep in mind that I did that by hand just as an example and not automatically generated):

# 3.2.0
### added (1 changes)
- [adding trailer via cmd line](embeded-programmers/gitchangelog-test@5263ee4c0520fc050ef8bb4831a79652f3b8f3cf)

# 3.1.0
### added (1 changes)
- [random shit feature completed](embeded-programmers/gitchangelog-test@89164b648f1c6323fe6c456371d2aa9ed2bc843d)

# 3.0.0
### added (1 changes)
- [temperature measurements supports new sensor](embeded-programmers/gitchangelog-test@3e2c90e7f565f155f3af832974ad3ac0ab5bb134)

# 2.9.0
### added (1 changes)
- [new feature for 2.9.0](embeded-programmers/gitchangelog-test@905551aaea9a18b9cb00a2db00abf85e271a7bb0)

Perhaps there is a way to use a custom changelog_config.yml template to achieve this?

Still waiting for any feedback regarding this

Any updates?