Here is a simple solution based on this article to implement a sort of a generic collection.
public ContentCollection Sort()
{
List items = (List)Items;
items.Sort();
return this;
}
The Content class needs to implement IComparable
Here is a simple solution based on this article to implement a sort of a generic collection.
public ContentCollection Sort()
{
List items = (List)Items;
items.Sort();
return this;
}
The Content class needs to implement IComparable