According to
http://code.google.com/appengine/docs/python/datastore/gqlreference.html

you can sort by two (or more) properties. It will just require a new
index to be built (which the SDK will create the definition for you)

or have a I missed something?

On 29/03/2009, manuelaraoz <[email protected]> wrote:
>
>  Hi there!
>
>  I want to know if this can be done efficiently:
>  I need to sort some database's entities first by one property, and if
>  there's a tie, to sort them by other property
>
>  for example, lets have the following:
>
>  class Person(db.Model):
>
>     age = IntegerProperty()
>     height_in_cm = IntegerProperty()
>
>  how can I sort first by age, but if I have two people with the same
>  age, to sort them by height_in_cm
>
>  I hope I made myself clear
>  and thanks in advance for your help
>
>  Manuel
>  >
>


-- 
Barry

- www.nearby.org.uk - www.geograph.org.uk -

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to