Retrieve courses based on date ordering