diff --git a/packages/analytics/analytics-chart/src/composables/useExploreResultToTimeDatasets.ts b/packages/analytics/analytics-chart/src/composables/useExploreResultToTimeDatasets.ts index 6dafc9cffe..d2e618d3ac 100644 --- a/packages/analytics/analytics-chart/src/composables/useExploreResultToTimeDatasets.ts +++ b/packages/analytics/analytics-chart/src/composables/useExploreResultToTimeDatasets.ts @@ -182,10 +182,12 @@ export default function useExploreResultToTimeDataset( if (dimension === 'status_code' || dimension === 'status_code_grouped') { // Sort by dimension labels. datasets.sort((a, b) => (a.label ?? '') < (b.label ?? '') ? -1 : 1) + console.log('Sorted by dimension labels:', dimension, datasets) } else { // Display largest dataset on top // sort by total, descending datasets.sort((a, b) => (Number(a.total) < Number(b.total) ? -1 : 1)) + console.log("Didn't sort by dimension labels:", dimension, datasets) } // Draw threshold lines, if any