public enum Parties
{
Up,
UpRight,
Right,
DownRight,
Down,
DownLeft,
Left,
UpLeft
}
public static void HardSurface(params Patries[] Part)
{
Parties[] num0 = Part; // От сдесь должно отрабативатся сортировка
}
HardSurface(Parties.Up, Parties.Down ...);
public enum Parties
{
Up = 1,
UpRight = 0,
Right = 2,
DownRight = 3,
Down = 6,
DownLeft = 5,
Left = 4,
UpLeft = 7
}
Parties[] p = { Parties.Up, Parties.UpLeft, Parties.DownLeft, Parties.Right };
var result = p.OrderBy(a => (int)a).ToList();
var sorted = num0.OrderBy(item => item);