using System.Collections.Generic;
using System.Collections;
public static void Main()
Console.WriteLine("Hello World");
int[][] myArray = {new int[]{3,4}, new int[]{7,2}, new int[]{6,2}};
Console.WriteLine(myArray.GetLength(0));
Array.Sort(myArray, (x,y)=> x[1].CompareTo(y[1]) == 0 ? y[0].CompareTo(x[0]) : x[1].CompareTo(y[1]));
foreach(int[] x in myArray)
public class MyCustomComparer : IComparer<int[]>
public int Compare(int[] x, int[] y)
int temp = x[1].CompareTo(y[1]);
return x[0].CompareTo(y[0]);