Appengine filter inequality and ordering fails
Posted
by davezor
on Stack Overflow
See other posts from Stack Overflow
or by davezor
Published on 2010-04-19T23:26:46Z
Indexed on
2010/04/19
23:33 UTC
Read the original article
Hit count: 244
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 ranking integer attribute. When I try to do this:
query.filter("submitted >=" thisweek).order("ranking")
I get the following:
BadArgumentError: First ordering property must be the same as inequality filter property, if specified for this query; received ranking, expected submitted
Huh? What am I missing?
Thanks.
© Stack Overflow or respective owner