Skip to content

Commit 5013324

Browse files
authored
Use accented sort in aggrid (#115)
Signed-off-by: David BRAQUART <[email protected]>
1 parent c85cbba commit 5013324

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/Grid/GridTable.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ export const GridTable: GridTableWithRef = forwardRef(function AgGridToolbar<TDa
105105
rowData={data}
106106
alwaysShowVerticalScroll={true}
107107
onGridReady={loadDataAndSave}
108+
accentedSort={true}
108109
context={useMemo(
109110
() =>
110111
({

src/pages/common/table-selection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ const TableSelection: FunctionComponent<TableSelectionProps> = (props) => {
4444
{
4545
field: 'id',
4646
filter: true,
47-
sortable: true,
47+
initialSort: 'asc',
4848
tooltipField: 'id',
4949
flex: 1,
5050
},
@@ -86,6 +86,7 @@ const TableSelection: FunctionComponent<TableSelectionProps> = (props) => {
8686
getRowId={getRowId}
8787
onSelectionChanged={handleEquipmentSelectionChanged}
8888
onGridReady={onGridReady}
89+
accentedSort={true}
8990
/>
9091
</Grid>
9192
</Grid>

src/pages/profiles/profiles-table.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ const ProfilesTable: FunctionComponent<ProfilesTableProps> = (props) => {
8484
trimInput: true,
8585
} as TextFilterParams<UserProfile>,
8686
tooltipField: 'name',
87+
initialSort: 'asc',
8788
},
8889
{
8990
field: 'allLinksValid',
@@ -115,10 +116,7 @@ const ProfilesTable: FunctionComponent<ProfilesTableProps> = (props) => {
115116
headerTooltip: intl.formatMessage({
116117
id: 'profiles.table.validity.description',
117118
}),
118-
sortable: true,
119119
filter: true,
120-
initialSortIndex: 1,
121-
initialSort: 'asc',
122120
},
123121
],
124122
[intl]

0 commit comments

Comments
 (0)