implement sorting of IdPs, SPs and attributes