title: Getting an ordered ics file from google Calendar
body: <p>I hope you could help me. </p>
  
  <p>I'm doing a little website for my friends and me, and there you have a private section where you can enter your calendar adress, and you get the next 5 events. </p>
  
  <p>So I'm just using the ics file of the calendar, which is requested everytime you open the calendar (via the private ics adress)</p>
  
  <p>But i don't get an orderd list of the next events, i'm also retrieving events in the past:
  for example, the first 5 events which show up are this one:</p>
  
  <ul>
  <li>20140704T163000Z - SUMMARY</li>
  <li>20121026 - More events</li>
  <li>20120905T173000Z - events over events</li>
  <li>20120929T160000Z - so much to do</li>
  <li>20140629 - calendar entry</li>
  </ul>
  
  <p>As you can see, there is an event 2014/07/04 but the next event ist 2012/10/26</p>
  
  <p>Do the owner of the calendar has to do any settings in his/her calendar or why do i get them unordered ?</p>
  
  <p>If know, if there isn't any solution, i need to read in every event into an array, and the filter them for $today &lt; $eventdatum.... but i don't want so much work :)</p>
  
  <p>I hope you can help me, greetings from germany, 
  Timo﻿</p>