I have a list of strings that presents name of categories that a film belongs to. I make a class define that list, implement List<String> and IComparable interface, in order to use in PivotViewerStringProperty as below:
public class SLCategoryList : List<String>, IComparable
{
public int CompareTo(object obj)
{
return this[0].CompareTo((obj as SLCategoryList)[0]);
}
}
The point here is a film should belong to many categories, and I want a sorting strategy so it can make pivotviewer and sort a database of films by each category. Therefore, it should show the same film at two or more categories at once when the application is running.
What sorting strategy should I use?