nodes: 0, module; 1, function_definition; 2, function_name:order_qc_dir; 3, parameters; 4, block; 5, identifier:dirnames; 6, expression_statement; 7, return_statement; 8, comment:"""Order the QC directory names according to their date.
  
      :param dirnames: the list of directories to merge data from.
  
      :type dirnames: list
  
      :returns: the sorted list of directories
      :rtype: list
  
      """; 9, call; 10, identifier:sorted; 11, argument_list; 12, identifier:dirnames; 13, keyword_argument; 14, identifier:key; 15, lambda; 16, lambda_parameters; 17, call; 18, identifier:dn; 19, attribute; 20, argument_list; 21, identifier:time; 22, identifier:strptime; 23, subscript; 24, string:"%Y-%m-%d_%H.%M.%S"; 25, call; 26, slice; 27, attribute; 28, argument_list; 29, integer:14; 30, attribute; 31, identifier:basename; 32, call; 33, identifier:os; 34, identifier:path; 35, attribute; 36, argument_list; 37, identifier:dn; 38, identifier:rstrip; 39, string:"/"
code: def order_qc_dir(dirnames):
      """Order the QC directory names according to their date.
  
      :param dirnames: the list of directories to merge data from.
  
      :type dirnames: list
  
      :returns: the sorted list of directories
      :rtype: list
  
      """
      return sorted(
          dirnames, key=lambda dn: time.strptime(
              os.path.basename(dn.rstrip("/"))[14:],
              "%Y-%m-%d_%H.%M.%S",
          )
      )