Ver originalSELECT id, rut FROM proveedor ORDER BY CAST(SUBSTRING(rut,1,CHAR_LENGTH(rut)-1) AS UNSIGNED) DESC