The ordering model for the calendar feeds is to sort the entries by
atom:updated (i.e. by the last update time of each entry), so the most
recently changed events appear earliest in the feed.

Sorting by event time is tricky, because recurring entries can contain
multiple times (one time per expanded recurrance of the event).

-- Kyle

On 6/13/06, Darren Hinderer <[EMAIL PROTECTED]> wrote:
> What are you trying to sort by?
>
> I'm betting you will have to sort it yourself.
>
> If it's by time, then I think you can parse out the time information into
> year/month/day/hour/etc and put them in date objects to do your comparison
> and sort.
>
> --
> Darren
>
>
> On 6/13/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> > Is there any way to get a sorted result of the queries?
> > Just got:
> >
> > 2006-06-22 10:00        - Event A
> > 2006-06-19 15:30        - Event B
> >
> > EventFeed myResultsFeed = myService.query(myQuery, EventFeed.class);
> > for (EventEntry e : myResultsFeed.getEntries()) {
> >         System.out.println (e.getTimes().get(0).getStartTime()
> >                         .toUiString()
> >         + "\t- " + e.getTitle().getPlainText());
> > }
> >
> > I excepted sorting by ascending date, which is unfortunately not the
> > case.  So is there a way to change the results or am i supposed to do
> > it manually ?
> > thx in advance
> >
> >
> >
> > > >
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Calendar Data API" 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-calendar-help-dataapi
-~----------~----~----~----~------~----~------~--~---

Reply via email to