I'm trying to build a query on the fly from a custom query object.
At one point in the code, the orderBy may be added to a DetachedCriteria. Later down the line, I'd like to add an orderBy should none already exist in the DetachedCriteria. Looking through the docs, I can't seem to find any way to access this information.
Is there some way to do this?
(Of course if it's impossible, I'll just refactor my code around this)
Can you try this :
Hope it will help.