Fixes JIRA issue SGF-273 - OrderBy (static) and Sort parameter (dynamic)...

... Repository Queries do not work.