Change in ovirt-engine[master]: core: do not use distinct if sort expr have func