add comments to sort and paginate method of merchant