Skip to content

Commit

Permalink
remove ⚠ & sort descending
Browse files Browse the repository at this point in the history
  • Loading branch information
0marperez committed Apr 30, 2024
1 parent 3ee1e93 commit abe1da3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ internal abstract class AnalyzeArtifactSizeMetrics : DefaultTask() {

analysis.metrics
.toList()
.sortedBy { it.second.percentage }.toMap()
.sortedByDescending { it.second.percentage }
.toMap()
.forEach { metric ->
if (metric.value.delta.isNotaFluctuation()) {
val row = buildString {
Expand All @@ -152,7 +153,6 @@ internal abstract class AnalyzeArtifactSizeMetrics : DefaultTask() {
append("|")
append("%.2f".format(metric.value.percentage))
append("%")
if (metric.value.requiresAttention()) append("⚠️")
appendLine("|")
}

Expand Down

0 comments on commit abe1da3

Please sign in to comment.