From 2c8c22c3432ecb3b64d5b20356b62d69526889f2 Mon Sep 17 00:00:00 2001 From: Lava <34743145+CanglongCl@users.noreply.github.com> Date: Sat, 13 Jan 2024 19:23:30 -0800 Subject: [PATCH] maintain the order of languages --- Easydict/NewApp/Utility/Extensions/LanguageExtensions.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Easydict/NewApp/Utility/Extensions/LanguageExtensions.swift b/Easydict/NewApp/Utility/Extensions/LanguageExtensions.swift index 7dc6f5e5c..0f9668bda 100644 --- a/Easydict/NewApp/Utility/Extensions/LanguageExtensions.swift +++ b/Easydict/NewApp/Utility/Extensions/LanguageExtensions.swift @@ -12,7 +12,7 @@ import Foundation extension Language: Defaults.Serializable {} extension Language: CaseIterable { - public static let allCases: [Language] = EZLanguageModel.allLanguagesDict().allKeys().map { rawValue in + public static let allCases: [Language] = EZLanguageModel.allLanguagesDict().sortedKeys().map { rawValue in Language(rawValue: rawValue as String) }