I have the following code:
var categories = catList.Select(c => new
{
Title = c.Web.Title,
Byline = c[Constants.FieldNames.Byline],
Url = c[SPBuiltInFieldId.FileRef]
});
I will always have maximum three items but could be less.
The Title will always be either (simplified) america, europe or africa
What I need to do is to sort them but not alphabetically before I add databind them to a repeater
The order I need to display them in is
europe
africa
america
How can I achieve this?
thanks in advance.
You could order the items by the title’s position that you store in a dictionary: