accept params to define sortBy when retrieving boxes from pipeline