[groupBy] Order by within records (#15404)

Closes https://github.com/twentyhq/core-team-issues/issues/1727

<img width="1415" height="625" alt="image"
src="https://github.com/user-attachments/assets/cd132582-4a95-463c-8946-87b77670e023"
/>
This commit is contained in:
Marie
2025-10-29 14:49:10 +01:00
committed by GitHub
parent ab10aa356d
commit 473efb5dc5
17 changed files with 603 additions and 81 deletions
@@ -166,6 +166,7 @@ export class CommonGroupByQueryRunnerService extends CommonBaseQueryRunnerServic
groupByDefinitions,
selectedFieldsResult: args.selectedFieldsResult,
queryRunnerContext,
orderByForRecords: args.orderByForRecords ?? [],
});
}
@@ -64,6 +64,7 @@ export interface CreateOneQueryArgs {
export interface GroupByQueryArgs {
filter?: ObjectRecordFilter;
orderBy?: OrderByWithGroupBy;
orderByForRecords?: ObjectRecordOrderBy;
groupBy: ObjectRecordGroupBy;
viewId?: string;
includeRecords?: boolean;