SELECT id, name, discr FROM company_persons ORDER BY name SELECT id, name, discr AS discriminator FROM company_persons ORDER BY name