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 simplest way would be to split your query:
q1 = query.filter("submitted >=" thisweek) q2 = q1.order("ranking")