added sort to expiredSEid, because otherwise we pick wrong SE