title: How can sort by odd,even row?
body: <p>I hava jagged Array
  I want sort first,third row ascending order and second,fourth row descending order</p>
  <pre><code>public class JaggedArrayTest {
    public static void Main() {
      int[][] arr = new int[4][] {
        new int[] {
            11,
            78,
            56,
            21
          },
          new int[] {
            2,
            7,
            5,
            6
          },
          new int[] {
            8,
            3,
            9,
            12
          },
          new int[] {
            1,
            10,
            19,
            17
          }
      };
      // Traverse array elements  
      for (int i = 0; i &lt; arr.Length; i++) {
        for (int j = 0; j &lt; arr[i].Length; j++) {
          System.Console.Write(arr[i][j] + &quot;    &quot;);
        }
        System.Console.WriteLine();
      }
    }
  }
  </code></pre>
  <p>I want output like this</p>
  <pre><code>11, 21, 56, 78 
  7, 6, 5,2
  3, 8,9,12
  19,17,10,1
  
  </code></pre>