Skip to content

Commit

Permalink
Console logging
Browse files Browse the repository at this point in the history
  • Loading branch information
adorack committed Dec 19, 2024
1 parent a5e2f8e commit 1702346
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1702346

Please sign in to comment.