Quantcast
Viewing all articles
Browse latest Browse all 10

Sort Collection

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


Viewing all articles
Browse latest Browse all 10

Trending Articles