SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.
TypeScript apmapplication-monitoringdistributed-tracinggogood-first-issuejaegerloglogsmetricsmonitoringnextjsobservabilityopen-sourceopentelemetryprometheusreactreactjsself-hostedtracingtypescript
feat: enale temporary sorting on table panel type (#5114)
Vikrant Gupta0760917a4b54
diff --git a/frontend/src/lib/query/createTableColumnsFromQuery.ts b/frontend/src/lib/query/createTableColumnsFromQuery.tsindex 988b5feae8..85b876dc11 100644--- a/frontend/src/lib/query/createTableColumnsFromQuery.ts+++ b/frontend/src/lib/query/createTableColumnsFromQuery.ts@@ -7,7 +7,7 @@ import {import { FORMULA_REGEXP } from 'constants/regExp';import { QUERY_TABLE_CONFIG } from 'container/QueryTable/config';import { QueryTableProps } from 'container/QueryTable/QueryTable.intefaces';-import { isEqual, isObject } from 'lodash-es';+import { isEqual, isNaN, isObject } from 'lodash-es';import { ReactNode } from 'react';import {IBuilderFormula,@@ -460,6 +460,18 @@ const generateTableColumns = (title: item.title,width: QUERY_TABLE_CONFIG.width,render: renderColumnCell && renderColumnCell[item.dataIndex],+ sorter: (a: RowData, b: RowData): number => {+ const valueA = Number(a[item.dataIndex]);+ const valueB = Number(b[item.dataIndex]);++ if (!isNaN(valueA) && !isNaN(valueB)) {+ return valueA - valueB;+ }++ return ((a[item.dataIndex] as string) || '').localeCompare(+ (b[item.dataIndex] as string) || '',+ );+ },};return [...acc, column];