I think I\'m overlooking something simple here, I can\'t imagine this is impossible to do.
I want to filter by a datetime attribute and then order the result by a rankin
The datastore isn't capable of ordering a query that contains an inequality by any property other than the one used in the inequality.
This can often be worked around by adding a property that can be filtered with an equality; in this case, it may be possible to have a BooleanProperty tracking whether an entity is from the current week, and update it for all entities at the end of each week.