diff --git a/src/app/core/_components/tables/agent-error-table/agent-error-table.component.ts b/src/app/core/_components/tables/agent-error-table/agent-error-table.component.ts index d04544b13..cb925990b 100644 --- a/src/app/core/_components/tables/agent-error-table/agent-error-table.component.ts +++ b/src/app/core/_components/tables/agent-error-table/agent-error-table.component.ts @@ -65,6 +65,8 @@ export class AgentErrorTableComponent extends BaseTableComponent implements OnIn }, { id: AgentErrorTableCol.TIME, + dataKey: 'time', + isSortable: true, render: (agentError: JAgentErrors) => this.renderDispatchTime(agentError), export: async (agentError: JAgentErrors) => formatUnixTimestamp(agentError.time, this.dateFormat) }, diff --git a/src/app/core/_models/config-ui.model.ts b/src/app/core/_models/config-ui.model.ts index ca6320a05..6277cca43 100644 --- a/src/app/core/_models/config-ui.model.ts +++ b/src/app/core/_models/config-ui.model.ts @@ -195,10 +195,10 @@ const _uiConfigDefault = { AgentErrorTableCol.MESSAGE ], order: { - id: AgentErrorTableCol.ID, - dataKey: 'id', + id: AgentErrorTableCol.TIME, + dataKey: 'time', isSortable: true, - direction: 'asc' + direction: 'desc' }, search: '' },