sort pattern on number of trips and include nTrips in response