How to fetch all commits from gitlab using gitlab API

Hi community,

I’m creating a piece of sw to fetch all commits from gitlab per project from time to time using the rest aPI. However I’m stucked on the following:

On gitlab api documentation I can see the following:

order → the commits are shown in reverse chronological order.

Is there any feature planned to sort in chronological order? If not I don’t know how to fetch all commits from git lab because at first run I don’t want to fetch all commits because they are a lot.

Any ideas are welcome.

Thanks.