sort functionalities added to the invitation page.