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