public int CompareToOrdersCellsByYFirstThenX(int aX, int aY, int bX, int bY) { Cell cellA = new Cell(LifeStates.ALIVE, aX, aY); Cell cellB = new Cell(LifeStates.ALIVE, bX, bY); return cellA.CompareTo(cellB); }