From 22336a43bc38483fd6afd66da09d70fba9d0d036 Mon Sep 17 00:00:00 2001 From: Alexandre Perrin Date: Fri, 29 Mar 2019 11:27:29 +0100 Subject: [PATCH] Same sort ordering for sideboard as for maindeck Before this patch, the chosen sort order would only be applied to the maindeck and the sideboard would always be sorted alphabetically. --- js/decklist/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/decklist/main.js b/js/decklist/main.js index 79341ad..e19064b 100644 --- a/js/decklist/main.js +++ b/js/decklist/main.js @@ -174,7 +174,7 @@ function generateSCGDecklist(parsedInput) { // Create deck variables const maindeck = parsedInput['main'], maindeck_count = Decklist.count(maindeck), - sideboard = Decklist.sort(parsedInput['side'], 'alphabetical'), + sideboard = Decklist.sort(parsedInput['side']), sideboard_count = Decklist.count(sideboard), letter_page_h = 792; // width is 612pt but not referenced, so no variable @@ -707,7 +707,7 @@ function generateStandardDecklist(parsedInput) { // Create deck variables const maindeck = Decklist.section(Decklist.sort(parsedInput['main'])), maindeck_count = Decklist.count(maindeck), - sideboard = Decklist.sort(parsedInput['side'], 'alphabetical'), + sideboard = Decklist.sort(parsedInput['side']), sideboard_count = Decklist.count(sideboard); // Add the logo