D
DotNetNewbie
Hi,
I have a class that represents a Menu Tab:
public class MenuTab
{
public string Name;
public string Filename;
public int SortOrder;
}
I then load them in a Generic like:
List<MenuTab> menus = new List<MenuTab>();
menus.Add(tab);
// etc.
**Now I want to be able to sort the elements just in case things get
added int he wrong order.
menus.Sort();
How can I make the Collection sort using the SortOrder property of the
MenuTab class?
I have a class that represents a Menu Tab:
public class MenuTab
{
public string Name;
public string Filename;
public int SortOrder;
}
I then load them in a Generic like:
List<MenuTab> menus = new List<MenuTab>();
menus.Add(tab);
// etc.
**Now I want to be able to sort the elements just in case things get
added int he wrong order.
menus.Sort();
How can I make the Collection sort using the SortOrder property of the
MenuTab class?