Note that the list returned by the datastore is generaly immutable list, thus you need to create another one (mutable) in order to be able to sort it.
Having the sorting done programatically (in memorey) gives you the advantage that the client (browser) can sort without having to leave the page. Hope this helps, Albert Attard Ogden Nash <http://www.brainyquote.com/quotes/authors/o/ogden_nash.html> - "The trouble with a kitten is that when it grows up, it's always a cat." 2009/8/4 Nick Johnson (Google) <[email protected]> > > Hi MajorProgramming, > > Using the sort method on a List, or the sorted() function, if your > data is not already in a list. > > -Nick Johnson > > On Tue, Aug 4, 2009 at 1:23 AM, MajorProgamming<[email protected]> > wrote: > > > > What is the most efficient way to sort Datastore results in memory? > > > > Thanks, > > > > > > > > > -- > Nick Johnson, Developer Programs Engineer, App Engine > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
