From 1671a585fb1618fe3a1457e06359a20f488f2e18 Mon Sep 17 00:00:00 2001 From: Jamie V Date: Thu, 28 Mar 2024 17:32:03 -0700 Subject: [PATCH] Mct7636 (#7645) * setting order for sort to descending if in performance mode and no sort set --------- Co-authored-by: Andrew Henry --- src/plugins/telemetryTable/TelemetryTable.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/plugins/telemetryTable/TelemetryTable.js b/src/plugins/telemetryTable/TelemetryTable.js index 00ae1159ee..3d4d91ae92 100644 --- a/src/plugins/telemetryTable/TelemetryTable.js +++ b/src/plugins/telemetryTable/TelemetryTable.js @@ -171,6 +171,10 @@ export default class TelemetryTable extends EventEmitter { this.removeTelemetryCollection(keyString); + let sortOptions = this.configuration.getConfiguration().sortOptions; + requestOptions.order = + sortOptions?.direction ?? (this.telemetryMode === 'performance' ? 'desc' : 'asc'); + if (this.telemetryMode === 'performance') { requestOptions.size = this.rowLimit; requestOptions.enforceSize = true;