public static IList <BattleUnitsStack> SortStacks(IList <BattleUnitsStack> stacks) => stacks .OrderBy(stack => stack, InitiativeComparer.GetInstance()) .ToList();
public static InitiativeComparer GetInstance() => _instance ?? (_instance = new InitiativeComparer());