Global Sorting Issue with Mongoose Data Source in Forest Admin

I’m experiencing an issue with global sorting in my Forest Admin dashboard. When I try to sort by id or createdAt, the sorting only applies to the current page and does not work across the entire collection as expected.

I’m using:

  • @forestadmin/agent version ^1.47.0
  • @forestadmin/datasource-mongoose version ^1.8.0
  • @forestadmin/datasource-toolkit version ^1.40.0

My data source is Mongoose, integrated into a NestJS app using Node.js and TypeScript. Could you please assist in resolving this issue?

Hello,
Thank you for the report. We can reproduce the bug on our side. I will create a urgent bug ticket to solve the issue :pray:
Best regard,
Alban

1 Like

The bug fix is currently under review and will be merged as soon as possible. :pray:

1 Like

Hello, could you pull the lastest version of “@forestadmin/datasource-mongoose” :pray:?
Tell me if it works on your side please :slight_smile:
Best regard,
Alban

1 Like

Thank you so much, the issue has been resolved!

2 Likes