Add order_by hook into aggregation pipeline