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 a sort parameter (expected),
but it still includes order=desc (unexpected).
- This happens in both paths:
api.mdblist.com requests
- 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:
-
Only append order if a non-default sort is 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).
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=desceven whensortis left asdefault, which reverses MDBList’s native list ordering (ascending).Current behavior
sort = 'default'order = 'desc'sort === 'default', the request does not include asortparameter (expected),but it still includes
order=desc(unexpected).api.mdblist.comrequests/lists/.../json/requestsExpected behavior
When no sort field is selected:
Suggested fix options
Any of the following would resolve it:
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 parametersNotes / 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).