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

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

        :@return self