From 031fad4737a3697cf081451b04c7657f352a2178 Mon Sep 17 00:00:00 2001 From: Kaiserdragon2 <8929967+Kaiserdragon2@users.noreply.github.com> Date: Sun, 4 Feb 2024 20:54:10 +0100 Subject: [PATCH] Fix Sorting off the categories --- .../java/com/donnnno/arcticons/helper/XMLCreator.java | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/preparehelper/src/main/java/com/donnnno/arcticons/helper/XMLCreator.java b/preparehelper/src/main/java/com/donnnno/arcticons/helper/XMLCreator.java index 54b9539cc0..b8938e623b 100644 --- a/preparehelper/src/main/java/com/donnnno/arcticons/helper/XMLCreator.java +++ b/preparehelper/src/main/java/com/donnnno/arcticons/helper/XMLCreator.java @@ -73,6 +73,12 @@ public static void mergeNewDrawables(String pathXml, String pathNewXml, String a Collections.sort(google); microsoft = new ArrayList<>(new HashSet<>(microsoft)); Collections.sort(microsoft); + symbols = new ArrayList<>(new HashSet<>(symbols)); + Collections.sort(symbols); + numbers = new ArrayList<>(new HashSet<>(numbers)); + Collections.sort(numbers); + number = new ArrayList<>(new HashSet<>(number)); + Collections.sort(number); emoji = new ArrayList<>(new HashSet<>(emoji)); Collections.sort(emoji); @@ -127,9 +133,10 @@ private static void classifyDrawable(String newDrawable) { microsoft.add(newDrawable); } else if (newDrawable.startsWith("emoji_")) { emoji.add(newDrawable); - } else if (newDrawable.startsWith("letter_") || newDrawable.startsWith("number_") - || newDrawable.startsWith("currency_") || newDrawable.startsWith("symbol_")) { + } else if (newDrawable.startsWith("letter_") || newDrawable.startsWith("currency_") || newDrawable.startsWith("symbol_")) { symbols.add(newDrawable); + } else if (newDrawable.startsWith("number_")){ + numbers.add(newDrawable); } else if (newDrawable.startsWith("_")) { number.add(newDrawable); } else {