nodes: 0, module; 1, function_definition; 2, function_name:sort; 3, parameters; 4, block; 5, identifier:self; 6, default_parameter; 7, expression_statement; 8, expression_statement; 9, if_statement; 10, return_statement; 11, identifier:order; 12, string:"asc"; 13, comment:"""Getting the sorted result of the given list
  
          :@param order: "asc"
          :@type order: string
  
          :@return self
          """; 14, call; 15, call; 16, block; 17, identifier:self; 18, attribute; 19, argument_list; 20, identifier:isinstance; 21, argument_list; 22, if_statement; 23, identifier:self; 24, identifier:__prepare; 25, attribute; 26, identifier:list; 27, comparison_operator:order == "asc"; 28, block; 29, else_clause; 30, identifier:self; 31, identifier:_json_data; 32, identifier:order; 33, string:"asc"; 34, expression_statement; 35, block; 36, assignment; 37, expression_statement; 38, attribute; 39, call; 40, assignment; 41, identifier:self; 42, identifier:_json_data; 43, identifier:sorted; 44, argument_list; 45, attribute; 46, call; 47, attribute; 48, identifier:self; 49, identifier:_json_data; 50, identifier:sorted; 51, argument_list; 52, identifier:self; 53, identifier:_json_data; 54, attribute; 55, keyword_argument; 56, identifier:self; 57, identifier:_json_data; 58, identifier:reverse; 59, True
code: def sort(self, order="asc"):
          """Getting the sorted result of the given list
  
          :@param order: "asc"
          :@type order: string
  
          :@return self
          """
          self.__prepare()
          if isinstance(self._json_data, list):
              if order == "asc":
                  self._json_data = sorted(self._json_data)
              else:
                  self._json_data = sorted(self._json_data, reverse=True)
  
          return self