Skip to content

Commit

Permalink
maintain the order of languages
Browse files Browse the repository at this point in the history
  • Loading branch information
CanglongCl committed Jan 14, 2024
1 parent 5038ee6 commit 2c8c22c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 2c8c22c

Please sign in to comment.