HHH-7608 - @OrderBy in combination with @Formula fails

Patch and test for HHH-7608 JIRA ticket.
Link: https://hibernate.onjira.com/browse/HHH-7608

Regards,
Lukasz Antoniak