diff --git a/datahub-web-react/src/app/entity/shared/Properties.tsx b/datahub-web-react/src/app/entity/shared/Properties.tsx index 4d3b9f23922ef..a718b44f380bf 100644 --- a/datahub-web-react/src/app/entity/shared/Properties.tsx +++ b/datahub-web-react/src/app/entity/shared/Properties.tsx @@ -1,5 +1,6 @@ import { Space, Table, Typography } from 'antd'; import React from 'react'; +import { ColumnsType } from 'antd/es/table'; import { StringMapEntry } from '../../../types.generated'; export type Props = { @@ -7,10 +8,12 @@ export type Props = { }; export function Properties({ properties }: Props) { - const propertyTableColumns = [ + const propertyTableColumns: ColumnsType = [ { title: 'Name', dataIndex: 'key', + sorter: (a, b) => a.key.localeCompare(b.key), + defaultSortOrder: 'ascend', }, { title: 'Value',