def sort_by(self, property, order="asc"):
        """Getting the sorted result by the given property

        :@param property, order: "asc"
        :@type property, order: string

        :@return self
        """
        self.__prepare()
        if isinstance(self._json_data, list):
            if order == "asc":
                self._json_data = sorted(
                    self._json_data,
                    key=lambda x: x.get(property)
                )
            else:
                self._json_data = sorted(
                    self._json_data,
                    key=lambda x: x.get(property),
                    reverse=True
                )

        return self
def sort_by ( self , property , order = "asc" ) : self . __prepare ( ) if isinstance ( self . _json_data , list ) : if order == "asc" : self . _json_data = sorted ( self . _json_data , key = lambda x : x . get ( property ) ) else : self . _json_data = sorted ( self . _json_data , key = lambda x : x . get ( property ) , reverse = True ) return self
Getting the sorted result by the given property

        :@param property, order: "asc"
        :@type property, order: string

        :@return self