Sure, but you need to do sorting application-side. The DB won't be able to do sorting on transient properties. You could create a comparator that did the sorting you want, and sort the results prior to rendering them.
There is no problem in sorting results. The problem is that if I use generating view tables from a database table then sorting is resulted from adding ?order by? to a query specified in "getEjbql". The ?getEjbql? method is specified in ?EntityQuery?. How can I force the table ordering to use another comparator?