4 messages in com.googlegroups.google-calendar-help-dataapiRe: Sorting Query-Results
FromSent OnAttachments
proe...@gmail.com13 Jun 2006 11:38 
Darren Hinderer13 Jun 2006 12:00 
Kyle Marvin13 Jun 2006 12:09 
proe...@gmail.com13 Jun 2006 13:49 
Subject:Re: Sorting Query-Results
From:Kyle Marvin (kmar@google.com)
Date:06/13/2006 12:09:30 PM
List:com.googlegroups.google-calendar-help-dataapi

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 <hind@gmail.com> 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.

On 6/13/06, proe@gmail.com <proe@gmail.com> 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