Hi, you have to add the System.Linq lib to be able to query the ENUM
The first thing in the instruction gets the Enum values
(CType([Enum].GetValues(GetType(EnumParaCombo)), EnumParaCombo())).Select(Function(c) c.ToString)
and then we arrange the order by means of the instruction:
OrderBy(Function(x) x).ToList
I leave you the test code that has a messy enum and at the end it prints it as an ordered list.
Imports System.Linq
Module Module1
Sub Main()
Dim enums As List(Of String) = (CType([Enum].GetValues(GetType(EnumParaCombo)),
EnumParaCombo())).Select(Function(c) c.ToString).
OrderBy(Function(x) x).ToList
For Each senum In enums
Console.WriteLine(senum)
Next
Console.ReadLine()
End Sub
End Module
Public Enum EnumParaCombo
OptionC = 0
OptionA = 1
OptionM = 2
OptionF = 3
End Enum
The result of running this program is this