Implemented sorting functionality for mapping table. Sorts by MapID , UserID or GroupId.