diff options
Diffstat (limited to 'UVtools.Core/Extensions/EnumExtensions.cs')
-rw-r--r-- | UVtools.Core/Extensions/EnumExtensions.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/UVtools.Core/Extensions/EnumExtensions.cs b/UVtools.Core/Extensions/EnumExtensions.cs index 493418c..6847164 100644 --- a/UVtools.Core/Extensions/EnumExtensions.cs +++ b/UVtools.Core/Extensions/EnumExtensions.cs @@ -33,7 +33,7 @@ namespace UVtools.Core.Extensions if (!t.IsEnum) throw new ArgumentException($"{nameof(t)} must be an enum type"); - return Enum.GetValues(t).Cast<Enum>().Select(e => new ValueDescription(e, e.GetDescription())).ToList(); + return Enum.GetValues(t).Cast<Enum>().OrderBy(e => e).Select(e => new ValueDescription(e, e.GetDescription())).ToList(); } } } |