diff --git a/server/connectors/traces/haystack/tracesConnector.js b/server/connectors/traces/haystack/tracesConnector.js index eb30317b..f2f9e4db 100644 --- a/server/connectors/traces/haystack/tracesConnector.js +++ b/server/connectors/traces/haystack/tracesConnector.js @@ -215,7 +215,8 @@ connector.getLatencyCost = (traceId) => { connector.getTimeline = (query) => traceCountsFetcher.fetch(traceCountsRequestBuilder.buildRequest(query)).then((result) => { const pbTraceCounts = messages.TraceCounts.toObject(false, result); - return pbTraceCountsConverter.toTraceCountsJson(pbTraceCounts); + return pbTraceCountsConverter.toTraceCountsJson(pbTraceCounts) + .sort((a, b) => (a.x - b.x)); }); module.exports = connector;