fixing Sort in publisher