LPS-47551 Fix of the search and ordering when 'Limit membership to members of the parent site' is enabled.