Added method to sort itinerary items in chronological order and method to determine trip duration