def get_name(self, use_alias=True):
        """
        Gets the name to reference the sorted field

        :return: the name to reference the sorted field
        :rtype: str
        """
        if self.desc:
            direction = 'DESC'
        else:
            direction = 'ASC'

        if use_alias:
            return '{0} {1}'.format(self.field.get_identifier(), direction)
        return '{0} {1}'.format(self.field.get_select_sql(), direction)
Gets the name to reference the sorted field

        :return: the name to reference the sorted field
        :rtype: str