I have 3 levels for a PlanSolution 1,2,3 and i need to sort by .levelId initially, and then alphabetically sort the solutions belonging to that level by .name
PlanSolution[] planSolutions = wsAccess.GetPlanSolutionsForPlanRisk(planRisk.Id);
List<PlanRisk> planSolutionsList = new List<PlanRisk>(planSolutions);
planSolutionsList.Sort(delegate(PlanSolution x, PlanSolution y)
{
//HELP lol
});
List<T>just to do sorting. Just use theArray.Sort()method as well as one of the delegates provided in the many solutions. Linq may be overkill if your array is large, as it may require you to make a copy of it if you want to keep it as an array or list (viaToList()orToArray()).