From 559d2b4d3952601aa4810deca11b69ec591a4bfa Mon Sep 17 00:00:00 2001 From: Chris Amico Date: Mon, 29 Jan 2024 11:48:52 -0500 Subject: [PATCH] Sort image sizes smallest to biggest --- src/config/config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config/config.js b/src/config/config.js index f8aa8dccd..646fd4f82 100644 --- a/src/config/config.js +++ b/src/config/config.js @@ -45,7 +45,7 @@ export const IMAGE_WIDTHS_ENTRIES = [ export const IMAGE_WIDTHS = IMAGE_WIDTHS_ENTRIES.map(([name, width]) => [ width, name, -]); +]).sort((a, b) => a[0] - b[0]); export const IMAGE_WIDTHS_MAP = new Map(IMAGE_WIDTHS);