fix portlet appointment sorting