some change in PortalLib with sorting events.