title: Sort between multiple arguments in ArrayList c#
body: <p>I am new to c# and have gotten stuck on an assignment. The idea is to create an Arraylist with multiple arguments from another class. I am supposed to sort only one of the arguments in a list. If there is only one argument there is no problem´, but I have 5. What do I do?</p>
  
  <pre><code>ArrayList people = new ArrayList();
  people.Add(new Student("Maria", "Svensson", "1989-06-14", "C#Programming", 7));
  people.Add(new Student("Bahar", "Nasri", "1992-08-04", "C#Programming", 5));
  people.Add(new Student("Kent", "Kaarik", "1967-12-12", "Software Development", 8));
  people.Add(new Student("Ahmed", "Khatib", "1990-06-06", "C#Programming", 9));
  people.Add(new Student("Lisa", "Lundin", "1984-01-22", "Software Development", 6));
  people.Add(new Student("Peter", "Stark", "1987-08-24", "Software Development", 4));
  people.Add(new Student("Christer", "Stefansson", "1987-04-02", "C#Programming", 10));
  
  people.Sort();
  foreach (Student item in people)
  {
      Console.WriteLine(item.firstN + " " + item.lastN + " " + item.birthD + " " + item.courseT + " " + item.gradeH);
  }
  </code></pre>
  
  <p>I also get the "Failed to compare two elements in the array" This leads me to believe I need the ICompare command, but I am not sure how to use it. What am I doing wrong? Thanks for any help!!</p>