We recommend using Visual Studio 2017

SortOrder Enumeration

The SortOrder enumeration contains values that specify how objects are sorted in an enumerated list.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public enum SortOrder

Member nameDescription
NameObjects are sorted by name.
SchemaObjects are sorted by schema.
TypeObjects are sorted by object type.
UrnObjects are sorted by their URN values.

The SortOrder enumeration class is served by the EnumObjects method.