<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def quote_name_unless_alias(self, name):
 """ A wrapper around connection.ops.quote_name that doesn't quote aliases for table names. Mostly used during the ORDER BY clause. """

        r = self.connection.ops.quote_name(name)
        self.quote_cache[name] = r
        return r