I have an array of some types
private string[] linkTypes = { \"dog\", \"cat\", // and so on .. };
Yes, I could u
Assuming linkTypes (the private string array) is in the same class as links (the list of LinkElement), you can use LINQ's OrderBy with a simple lambda expression:
linkTypes
links
LinkElement
var sortedLinks = links.OrderBy(le => Array.IndexOf(linkTypes, le.linkType)).ToList()