You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e489990
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: content/docs/references/ui/component.mdx
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -887,7 +887,7 @@ Sort field and direction pair
887
887
888
888
| Property | Type | Required | Description |
889
889
| :--- | :--- | :--- | :--- |
890
-
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
890
+
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
1040
+
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
Copy file name to clipboardExpand all lines: content/docs/references/ui/view.mdx
+7-5Lines changed: 7 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -613,14 +613,15 @@ Record grouping configuration — SERVER-SIDE: the set of groups and every numbe
613
613
614
614
| Property | Type | Required | Description |
615
615
| :--- | :--- | :--- | :--- |
616
-
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
616
+
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
617
617
618
618
### Nested Shape: `GroupingConfig.fields[number]`
619
619
620
620
| Property | Type | Required | Description |
621
621
| :--- | :--- | :--- | :--- |
622
622
|**field**|`string`| ✅ | Field name to group by — one `groupBy` column of the group header query; the header row carries its raw stored value (null for the empty group). NO leading or trailing whitespace: the name is compiled into the aggregate query verbatim, so a padded spelling buckets every row into one empty group instead of grouping them. |
623
-
|**order**|`Enum<'asc' \| 'desc'>`| optional (default: `"asc"`) | Group sort order — applied by the consumer over the header rows (the aggregate query carries no orderBy) |
623
+
|**order**|`Enum<'asc' \| 'desc'>`| optional (default: `"asc"`) | Group sort order — applied by the consumer over the header rows (the aggregate query itself sorts nothing): by the group key, or by the `orderBy` value each header row carries when `orderBy` is set |
624
+
|**orderBy**|`string`| optional | Field whose value orders this level's groups, when that is not the grouping field — a field of the same object; default: the grouping field itself, so the groups order by their own key. The group header query then carries, per group, the smallest value of this field for `order: asc` and the largest for `desc` (each group sits where its first row would if the rows were sorted by this field), and the consumer sorts the header rows by it; a group with no value here sorts last in both directions, and equal values fall back to the group key. A numeric, temporal or boolean field: min/max over a string orders by collation, which differs between backends, so the server refuses it |
624
625
|**collapsed**|`boolean`| optional (default: `false`) | Collapse groups by default (presentation only) |
625
626
626
627
@@ -633,7 +634,8 @@ Record grouping configuration — SERVER-SIDE: the set of groups and every numbe
633
634
| Property | Type | Required | Description |
634
635
| :--- | :--- | :--- | :--- |
635
636
|**field**|`string`| ✅ | Field name to group by — one `groupBy` column of the group header query; the header row carries its raw stored value (null for the empty group). NO leading or trailing whitespace: the name is compiled into the aggregate query verbatim, so a padded spelling buckets every row into one empty group instead of grouping them. |
636
-
|**order**|`Enum<'asc' \| 'desc'>`| optional (default: `"asc"`) | Group sort order — applied by the consumer over the header rows (the aggregate query carries no orderBy) |
637
+
|**order**|`Enum<'asc' \| 'desc'>`| optional (default: `"asc"`) | Group sort order — applied by the consumer over the header rows (the aggregate query itself sorts nothing): by the group key, or by the `orderBy` value each header row carries when `orderBy` is set |
638
+
|**orderBy**|`string`| optional | Field whose value orders this level's groups, when that is not the grouping field — a field of the same object; default: the grouping field itself, so the groups order by their own key. The group header query then carries, per group, the smallest value of this field for `order: asc` and the largest for `desc` (each group sits where its first row would if the rows were sorted by this field), and the consumer sorts the header rows by it; a group with no value here sorts last in both directions, and equal values fall back to the group key. A numeric, temporal or boolean field: min/max over a string orders by collation, which differs between backends, so the server refuses it |
637
639
|**collapsed**|`boolean`| optional (default: `false`) | Collapse groups by default (presentation only) |
638
640
639
641
@@ -1018,7 +1020,7 @@ View filter rule
1018
1020
1019
1021
| Property | Type | Required | Description |
1020
1022
| :--- | :--- | :--- | :--- |
1021
-
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
1023
+
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
1022
1024
1023
1025
### Nested Shape: `ListView.rowColor`
1024
1026
@@ -1395,7 +1397,7 @@ View filter rule
1395
1397
1396
1398
| Property | Type | Required | Description |
1397
1399
| :--- | :--- | :--- | :--- |
1398
-
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
1400
+
|**fields**|`{ field: string; order?: Enum<'asc' \| 'desc'>; orderBy?: string; collapsed?: boolean }[]`| ✅ | Fields to group by, in nesting order — the first entry is the outermost group and each later entry nests one level deeper (at least one field); the same order as the group header query's `groupBy`|
0 commit comments