Skip to content

Commit

Permalink
Improve sorting order in CriticalCSSForDocsSitesBenchmark component
Browse files Browse the repository at this point in the history
  • Loading branch information
1aron committed Feb 23, 2024
1 parent f775ecb commit 5f0c3e6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default () => (
content: (
<Bars>
{results
.sort((a, b) => b.totalCSSSize - a.totalCSSSize)
.sort((a, b) => a.totalCSSSize - b.totalCSSSize)
.map((result) => {
const brand = brands.find((brand) => brand.name === result.name)
return (
Expand Down Expand Up @@ -50,7 +50,7 @@ export default () => (
content: (
<Bars>
{results
.sort((a, b) => b.totalCSSBrotliSize - a.totalCSSBrotliSize)
.sort((a, b) => a.totalCSSBrotliSize - b.totalCSSBrotliSize)
.map((result) => {
const brand = brands.find((brand) => brand.name === result.name)
return (
Expand Down

0 comments on commit 5f0c3e6

Please sign in to comment.