nodes: 0, module; 1, function_definition; 2, function_name:sort; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, expression_statement; 8, comment:"""Sorts all results rows.
  
          Sorts by: size (descending), n-gram, count (descending), label,
          text name, siglum.
  
          """; 9, call; 10, attribute; 11, argument_list; 12, attribute; 13, identifier:sort_values; 14, keyword_argument; 15, keyword_argument; 16, keyword_argument; 17, identifier:self; 18, identifier:_matches; 19, identifier:by; 20, list; 21, identifier:ascending; 22, list; 23, identifier:inplace; 24, True; 25, attribute; 26, attribute; 27, attribute; 28, attribute; 29, attribute; 30, attribute; 31, False; 32, True; 33, False; 34, True; 35, True; 36, True; 37, identifier:constants; 38, identifier:SIZE_FIELDNAME; 39, identifier:constants; 40, identifier:NGRAM_FIELDNAME; 41, identifier:constants; 42, identifier:COUNT_FIELDNAME; 43, identifier:constants; 44, identifier:LABEL_FIELDNAME; 45, identifier:constants; 46, identifier:WORK_FIELDNAME; 47, identifier:constants; 48, identifier:SIGLUM_FIELDNAME
code: def sort(self):
          """Sorts all results rows.
  
          Sorts by: size (descending), n-gram, count (descending), label,
          text name, siglum.
  
          """
          self._matches.sort_values(
              by=[constants.SIZE_FIELDNAME, constants.NGRAM_FIELDNAME,
                  constants.COUNT_FIELDNAME, constants.LABEL_FIELDNAME,
                  constants.WORK_FIELDNAME, constants.SIGLUM_FIELDNAME],
              ascending=[False, True, False, True, True, True], inplace=True)