I have an app engine application and I want to run a query that sorts the result based on a expression involving two properties. Best way I thought of doing it so far is to
You can create an index which involves multiple properties. Something like this:
class X{ @Indexed public String a; @Indexed public String b; }
Read more about it here: https://cloud.google.com/appengine/docs/java/config/indexconfig