From 5f0c3e6842676ebcc80f5e274da46ef04906172c Mon Sep 17 00:00:00 2001 From: Aron Date: Fri, 23 Feb 2024 22:51:42 +0800 Subject: [PATCH] Improve sorting order in CriticalCSSForDocsSitesBenchmark component --- .../components/CriticalCSSForDocsSitesBenchmark.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/website/app/[locale]/(root)/docs/introduction/components/CriticalCSSForDocsSitesBenchmark.tsx b/website/app/[locale]/(root)/docs/introduction/components/CriticalCSSForDocsSitesBenchmark.tsx index ed6adcbc2..f71ee0b81 100644 --- a/website/app/[locale]/(root)/docs/introduction/components/CriticalCSSForDocsSitesBenchmark.tsx +++ b/website/app/[locale]/(root)/docs/introduction/components/CriticalCSSForDocsSitesBenchmark.tsx @@ -22,7 +22,7 @@ export default () => ( content: ( {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 ( @@ -50,7 +50,7 @@ export default () => ( content: ( {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 (