Unfortunately not since if you have sorted by customersite, which is story specific, and go into the epic-story view it will cause an error. The client will have a cookie which wants to sort by customersite, but that will not generate a valid HQL statement if the attribute does not exist for epics.

Furthermore, by having it this way nobody will be able to insert more words into the HQL statement since we control all words that can be inserted. I have not been very happy about inserting the variable "order" into statement before because of security.