title: arraylist with object type
body: <p>hi i using arraylist and storing simple object array in that , my sample code snipt </p>
  
  <pre><code>  ArrayList rows = new ArrayList();
  
          object[] objs = new object[3];
  
          objs[0] = 1;
          objs[1] = "dilip";
          objs[2] = 27;
          rows.Add(objs);
  
          objs = new object[3];
  
          objs[0] = 2;
          objs[1] = "lucky";
          objs[2] = 42;
          rows.Add(objs);
  
          objs = new object[3];
          objs[0] = 3;
          objs[1] = "user";
          objs[2] = 46;
          rows.Add(objs);
          objs = new object[3];
          objs[0] = 4;
          objs[1] = "testing";
          objs[2] = 76;
          rows.Add(objs);
          objs = new object[3];
          objs[0] = 5;
          objs[1] = "trying";
          objs[2] = 44;
         rows.Add(objs);
  </code></pre>
  
  <p>How can i apply asc or desc sorting on any index of object 
  for example sorting based on name which index 1 or sorting based on age which index 2 ..</p>
  
  <p>please provide any suggestion .
  Thanks ..</p>