def reverse(self):
clone = self._clone()<EOL>assert self._ordering, "<STR_LIT>"<EOL>ordering = []<EOL>for order in self._ordering:<EOL><INDENT>for k, v in order.items():<EOL><INDENT>if v == "<STR_LIT>":<EOL><INDENT>ordering.append({k: "<STR_LIT>"})<EOL><DEDENT>else:<EOL><INDENT>ordering.append({k: "<STR_LIT>"})<EOL><DEDENT><DEDENT><DEDENT>clone._ordering = ordering<EOL>return clone<EOL>
Reverses the ordering of the QuerySet.