-
Notifications
You must be signed in to change notification settings - Fork 34
Open
Description
Summary
In the MDBList integration, lists can be returned in reverse order when the user does not specify a sort field. The integration defaults to sending order=desc even when sort is left as default, which reverses MDBList’s native list ordering (ascending).
Current behavior
- When no sort is chosen, code uses:
sort = 'default'order = 'desc'
- Because
sort === 'default', the request does not include asortparameter (expected),
but it still includesorder=desc(unexpected). - This happens in both paths:
api.mdblist.comrequests- public
/lists/.../json/requests
Expected behavior
When no sort field is selected:
- Preserve MDBList’s native list order (ascending)
- Do not reverse the order
Suggested fix options
Any of the following would resolve it:
- Change the default to:
order = 'asc'-
Only append
orderif a non-defaultsortis specified (so “default sort” keeps native order) -
When
sort === 'default', and no order is selected, omit sort and sortorder parameters
Notes / Impact
This causes unexpected ordering for users relying on MDBList list order when they don’t manually select sorting (e.g., integrations that expect “list order” by default).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels