diff --git a/packages/nocodb/src/lib/noco/meta/NcMetaIOImpl.ts b/packages/nocodb/src/lib/noco/meta/NcMetaIOImpl.ts index ef7be286fe..f2dcb929ec 100644 --- a/packages/nocodb/src/lib/noco/meta/NcMetaIOImpl.ts +++ b/packages/nocodb/src/lib/noco/meta/NcMetaIOImpl.ts @@ -307,6 +307,11 @@ export default class NcMetaIOImpl extends NcMetaIO { (query as any).condition(args.xcCondition); } + if (args?.orderBy) { + for (const [col, dir] of Object.entries(args.orderBy)) { + query.orderBy(col, dir); + } + } if (args?.fields?.length) { query.select(...args.fields); }