Impacted versions: 8.0

Steps to reproduce:
- Create a database with demo data
- Go to sales, product categories & attributes, attribute values
- Click on 'attribute' column name

Current behavior:
Attribute values are sorted by attribute database ID

Expected behavior:
Attribute values are sorted by attribute name

addons/product/product.py
"""
    Keep track of the ``product.template`` standard prices as they are changed.
    """
    _name = 'product.price.history'
    _rec_name = 'datetime'
    _order = 'datetime desc'
    _columns = {
        'company_id': fields.many2one('res.company', required=True),
        'product_template_id': fields.many2one('product.template', 'Product Template', required=True, ondelete='cascade'),
        'datetime': fields.datetime('Historization Time'),
        'cost': fields.float('Historized Cost'),
    }
    def _get_default_company(self, cr, uid, context=None):
        if 'force_company' in context:
            return context['force_company']
        else:
            company = self.pool['res.users'].browse(cr, uid, uid,
                context=context).company_id
            return company.id if company else False
    _defaults = {
        'datetime': fields.datetime.now,
        'company_id': _get_default_company,
    }
class product_attribute(osv.osv):