[hibernate-issues] [JIRA] (HHH-11258) Using nested order by in a function context produces wrong sql