nodes: 0, module; 1, function_definition; 2, function_name:get_learned_skills; 3, parameters; 4, block; 5, identifier:self; 6, identifier:lang; 7, expression_statement; 8, expression_statement; 9, expression_statement; 10, return_statement; 11, comment:"""
          Return the learned skill objects sorted by the order they were learned
          in.
          """; 12, assignment; 13, call; 14, list_comprehension; 15, identifier:skills; 16, list_comprehension; 17, attribute; 18, argument_list; 19, identifier:skill; 20, for_in_clause; 21, if_clause; 22, identifier:skill; 23, for_in_clause; 24, identifier:self; 25, identifier:_compute_dependency_order; 26, identifier:skills; 27, identifier:skill; 28, call; 29, subscript; 30, identifier:skill; 31, subscript; 32, identifier:sorted; 33, argument_list; 34, identifier:skill; 35, string; 36, subscript; 37, string; 38, identifier:skills; 39, keyword_argument; 40, string_content:learned; 41, attribute; 42, identifier:lang; 43, string_content:skills; 44, identifier:key; 45, lambda; 46, attribute; 47, identifier:language_data; 48, lambda_parameters; 49, subscript; 50, identifier:self; 51, identifier:user_data; 52, identifier:skill; 53, identifier:skill; 54, string; 55, string_content:dependency_order
code: def get_learned_skills(self, lang):
          """
          Return the learned skill objects sorted by the order they were learned
          in.
          """
          skills = [skill for skill in
                    self.user_data.language_data[lang]['skills']]
  
          self._compute_dependency_order(skills)
  
          return [skill for skill in
                  sorted(skills, key=lambda skill: skill['dependency_order'])
                  if skill['learned']]