From 5e7dcd2305685624574755367d432d9c5cbc39d0 Mon Sep 17 00:00:00 2001 From: Yuya Matsuo Date: Wed, 22 Nov 2023 05:47:14 +0900 Subject: [PATCH] Sort icons Array before passing to exportIcons (#224) --- Sources/FigmaExport/Subcommands/ExportIcons.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/FigmaExport/Subcommands/ExportIcons.swift b/Sources/FigmaExport/Subcommands/ExportIcons.swift index 5ad2b6fc..a98b064d 100644 --- a/Sources/FigmaExport/Subcommands/ExportIcons.swift +++ b/Sources/FigmaExport/Subcommands/ExportIcons.swift @@ -218,7 +218,7 @@ extension FigmaExportCommand { }.map { fileContents -> String in fileContents.destination.file.deletingPathExtension().lastPathComponent }) - let composeFile = try composeExporter.exportIcons(iconNames: Array(composeIconNames)) + let composeFile = try composeExporter.exportIcons(iconNames: Array(composeIconNames).sorted()) composeFile.map { localFiles.append($0) } logger.info("Writing files to Android Studio project...")