using System.Collections.Generic;
using System.Collections;
using System.Data.DataSetExtensions;
using System.Runtime.Remoting;
using System.Globalization;
using System.Runtime.CompilerServices;
using System.Text.RegularExpressions;
public static void Main()
int[][] jaggedarray = new int[3][];
jaggedarray[0] = new int[5] { 99, 999, 49, 79, 59 };
jaggedarray[1] = new int[3] { 199, 1999, 149 };
jaggedarray[2] = new int[2] { 999, 500 };
jaggedarray = jaggedarray.OrderBy(j=>j.Skip(1).First()).ToArray();
foreach(int[] arr in jaggedarray)