Adding sort and filter options to printTrips