nodes: 0, module; 1, function_definition; 2, function_name:GetLoadingOrder; 3, parameters; 4, block; 5, identifier:self; 6, expression_statement; 7, expression_statement; 8, for_statement; 9, return_statement; 10, comment:"""Returns a list of filenames sorted by loading order.
      Only includes files that Loader's standardized loading knows how to load"""; 11, assignment; 12, pattern_list; 13, call; 14, block; 15, call; 16, identifier:result; 17, dictionary; 18, identifier:filename; 19, identifier:mapping; 20, attribute; 21, argument_list; 22, expression_statement; 23, if_statement; 24, identifier:list; 25, generator_expression; 26, attribute; 27, identifier:iteritems; 28, assignment; 29, comparison_operator:loading_order is not None; 30, block; 31, subscript; 32, for_in_clause; 33, identifier:self; 34, identifier:_file_mapping; 35, identifier:loading_order; 36, subscript; 37, identifier:loading_order; 38, None; 39, expression_statement; 40, identifier:result; 41, identifier:key; 42, identifier:key; 43, call; 44, identifier:mapping; 45, string; 46, assignment; 47, identifier:sorted; 48, argument_list; 49, string_content:loading_order; 50, subscript; 51, identifier:filename; 52, identifier:result; 53, identifier:result; 54, identifier:loading_order
code: def GetLoadingOrder(self):
      """Returns a list of filenames sorted by loading order.
      Only includes files that Loader's standardized loading knows how to load"""
      result = {}
      for filename, mapping in self._file_mapping.iteritems():
        loading_order = mapping['loading_order']
        if loading_order is not None:
          result[loading_order] = filename
      return list(result[key] for key in sorted(result))