public void SortObjectives() { CurrentOrder?.GetPriority(); Objectives.ForEach(o => o.GetPriority()); if (Objectives.Any()) { Objectives.Sort((x, y) => y.Priority.CompareTo(x.Priority)); } GetCurrentObjective()?.SortSubObjectives(); }