fixed assignment of multiple category ids to sorting link