title: Sort the two-dimensional sheet containing the objects of the class by the given field
body: <p>I can not sort a two-dimensional list that contains objects of the class by the given field. I have a list of ArrayCD, which contains objects class musicCD. I address them in the following way:</p>
  
  <pre><code>for i in range(len(sortArrayCD)):
      print(sortArrayCD[i].getSinger(), sortArrayCD[i].getEdition(), sortArrayCD[i].getRecordsCount())
  </code></pre>
  
  <p>How can I sort this list by a given field. For example, on getEdition(). </p>
  
  <pre><code>ArrayCD = sorted(ArrayCD, key=itemgetter(1))    
  ArrayCD = sorted(ArrayCD, key=lambda x: x[1])
  </code></pre>
  
  <p>Such options do not help...</p>