I would like to order entities by ancestor, GQL reference only mentions properties in ordering. Do I have to store a parent as a property to involve it in the ordering?
I trying to achieve something like this:
Foo.all().ancestor(bar).order('ancestor').order('-value').fetch(100)
EDIT:
I have something like this:
bar
├ spam
│ ├ foo2 (value = 2)
│ └ foo7
└ egs
├ foo6
└ foo5
And I'd like to get: [foo5, foo6, foo2, foo7]
. I guess what I really want I to group them by ancestor, and then order them by value
property.