Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/sn4k3/UVtools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'UVtools.Core/Extensions/EnumExtensions.cs')
-rw-r--r--UVtools.Core/Extensions/EnumExtensions.cs2
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();
}
}
}