nodes: 0, module; 1, function_definition; 2, function_name:sort_rows; 3, parameters; 4, block; 5, identifier:self; 6, identifier:rows; 7, identifier:section; 8, expression_statement; 9, comment:#print("@@ SORT ROWS:\n{}".format(rows)); 10, comment:# Section-specific determination of sort key; 11, if_statement; 12, if_statement; 13, comment:"""Sort the rows, as appropriate for the section.
  
          :param rows: List of tuples (all same length, same values in each position)
          :param section: Name of section, should match const in Differ class
          :return: None; rows are sorted in-place
          """; 14, comparison_operator:section.lower() == Differ.CHANGED.lower(); 15, block; 16, else_clause; 17, comparison_operator:sort_key is not None; 18, block; 19, call; 20, call; 21, expression_statement; 22, block; 23, identifier:sort_key; 24, None; 25, expression_statement; 26, attribute; 27, argument_list; 28, attribute; 29, argument_list; 30, assignment; 31, expression_statement; 32, call; 33, identifier:section; 34, identifier:lower; 35, attribute; 36, identifier:lower; 37, identifier:sort_key; 38, attribute; 39, assignment; 40, attribute; 41, argument_list; 42, identifier:Differ; 43, identifier:CHANGED; 44, identifier:Differ; 45, identifier:CHANGED_DELTA; 46, identifier:sort_key; 47, None; 48, identifier:rows; 49, identifier:sort; 50, keyword_argument; 51, identifier:key; 52, call; 53, identifier:itemgetter; 54, argument_list; 55, identifier:sort_key
code: def sort_rows(self, rows, section):
          """Sort the rows, as appropriate for the section.
  
          :param rows: List of tuples (all same length, same values in each position)
          :param section: Name of section, should match const in Differ class
          :return: None; rows are sorted in-place
          """
          #print("@@ SORT ROWS:\n{}".format(rows))
          # Section-specific determination of sort key
          if section.lower() == Differ.CHANGED.lower():
              sort_key = Differ.CHANGED_DELTA
          else:
              sort_key = None
          if sort_key is not None:
              rows.sort(key=itemgetter(sort_key))